Menu

JSON exception

Help
smilebug
2007-05-30
2013-04-19
  • smilebug

    smilebug - 2007-05-30

    It's great job.
    But I found a problem
    I downloaded the json-0.2.jar, when I use the code ,a JSON exception happened
     
      String sJson = "{\"userName\":\"\"}";  //use "{\"userName\":\" \"}" has no exception
      JSONObject oJson = new JSONObject(sJson);

    Next I use offcial json.jar overwrite the org folder in your json-0.2.jar, this code run well.

    Do you have this problem?

     
    • Pascal-Louis

      Pascal-Louis - 2007-08-26

      This has been fixed in the 0.3 release. It was due to a bug in our extension of the org.json parser.

       

Log in to post a comment.