Share

myjson - JSON object literals for java

Code

Programming Languages: Java

License: GNU Library or Lesser General Public License (LGPL)

Repositories

browse code, statistics, last commit on 2006-10-25 cvs -d:pserver:anonymous@myjson.cvs.sourceforge.net:/cvsroot/myjson login

cvs -z3 -d:pserver:anonymous@myjson.cvs.sourceforge.net:/cvsroot/myjson co -P modulename

Show:

What's happening?

  • myjson - JSON object literals for java

    ahristov314 added the myjson-2.0-src.jar file.

    2009-02-15 21:37:53 UTC by ahristov314

  • myjson - JSON object literals for java

    ahristov314 added the myjson-2.0-bin.jar file.

    2009-02-15 21:37:53 UTC by ahristov314

  • myjson v2.0

    ahristov314 created the myjson v2.0 file release.

    2009-02-15 21:31:29 UTC by ahristov314

  • Comment: JSON Object Structure

    Hi Satya. Thanks, but this functionality is already present in MyJSON. There are even JUnit tests thast test it. Simply set the "strict" property of the serializer to true. For example: public static void main(String[] args) { User u = new User(); u.age = 23; u.addr = new Address(); u.addr.street = "Sesame"; u.addr.zip = "28001"; u.name = "Cookie monster";.

    2008-07-24 09:27:28 UTC by ahristov314

  • JSON Object Structure

    Hi, I downloaded myjson-lib for our project and it works well. But, I made a small modification in source code for the creation of json object string. Currently, JSON Object String created by Serializer.java, has name:value pairs of the given bean with value enclosed in double quotes("). ie., id:"12345". But, JSON Object requires that the names and values be enclosed in double quotes.

    2008-06-03 14:05:01 UTC by smedi

  • Comment: parse err

    This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).

    2006-12-22 03:20:13 UTC by sf-robot

  • Comment: parse err

    Please attach a complete test, as with the information provided I cannot trace the error. I need the *full* serialized object, and the class definitions that you are trying to update.

    2006-12-08 00:47:06 UTC by ahristov314

  • parse err

    Exception in thread "main" org.myjson.common.ParserException: Invalid decimal digit [m] Line = 1 Column = 1316. Line and col are 1-based at org.myjson.common.GenericParser.unsignedInteger(GenericParser.java:449) at org.myjson.common.GenericParser.number(GenericParser.java:484) at org.myjson.json.Parser.value(Parser.java:184) at org.myjson.json.Parser.array(Parser.java:122) at...

    2006-12-06 19:09:50 UTC by dmeany

  • Comment: java.util.Date not handled

    I can't reproduce the error with the following test: parser.setInput("{ mExpirationDate:{} }"); map = (ValueMap)parser.parse(); Assert.assertEquals(map.size(),1); Assert.assertEquals(map.get("mExpirationDate"),new ValueMap()); It parses correctly and completes correctly. Can you submit the complete serialized string? As for java.util.Date, its inner fields are marked as transient...

    2006-11-19 09:59:49 UTC by ahristov314

  • Comment: parser err for 0

    Thank you for your bug report. This is indeed a bug and has been resolved. The next version will have this issue fixed.

    2006-11-19 09:36:25 UTC by ahristov314

Our Numbers