title: Unexpected character(<) position 0 Java
body: <p>I have a small problem with my json parser</p>
  
  <p>When i try to parse a string i get this exception:</p>
  
  <pre><code>Unexpected character (&lt;) at position 0
  </code></pre>
  
  <p>But i dont see where the problem is. This is the code that i made:</p>
  
  <pre><code>JSONParser parser = new JSONParser();
          try {
              Object obj = parser.parse(response);
              System.out.println(obj);
  
              JSONObject jsonObject = (JSONObject) obj;
  
              // loop the string
              //id = (String) jsonObject.get("id");
              voornaam = (String) jsonObject.get("voornaam");
              achternaam = (String) jsonObject.get("achternaam");
  
              _voornaamTxtField.setText(voornaam);
              _achternaamTxtField.setText(achternaam);
  
          } catch (ParseException pex) {
              JOptionPane.showMessageDialog(null, "ParseException",
                      "Error", JOptionPane.ERROR_MESSAGE);
              System.out.println(pex);
          } catch (NullPointerException npex) {
              JOptionPane.showMessageDialog(null, "NullpointerException",
                      "Error", JOptionPane.ERROR_MESSAGE);
          }
  </code></pre>
  
  <p>Can someone explain to me what i am doeing to cause the exception</p>