Menu

Json-lib 2.2 released

Dear Open Source Community,
I'm pleased to announce that Json-lib version 2.2 has been released.

JSON-lib is a java library for transforming beans, maps and XML to JSON and back again to beans and DynaBeans. It is based on the work by Douglas Crockford in http://www.json.org/java.

Changelog:

+ Additions
Add a chained version of remove to JSONObject.
Initial generics support. Many thanks to Matt Small (and WaveMaker) (provided patch and tests). (rolled-back)
Extra quotes on string values with {} and []

+ Fixes
1855019 JSONUtils.mayBeJSON is broken.
1847116 Add support of Sets in JSONObject.toBean
1832146 Don't require the user to register Enum morphs by hand
1832041 Ignore getters annotated with @Transient. Thanks to Dan Fabulich (provided workaround)
1832047 Use private no-arg constructors when available. Thanks to Dan Fabulich (provided workaround)
1832139 Enums should be serialized by name(), not by String.valueOf. Thanks to Dan Fabulich (provided workaround)
1832055 NewBeanInstanceStrategy ignored when you pass a root obj
1828093 JSONArray.toArray can't transform from String[] to int[]
1819159 Encoding problem of XMLSerializer#writeDocument. Thanks to Masato Nagai (provided a patch)
1815457 Allow direct property acces when transforming JSON to Java. Thanks to Gino Miceli (provided a patch)
1815456 Allow default value to be changed when a reference is null
1813520 Allow 'type' to be parsed from XML to JSON
1813301 JSONObject.toBean throws NPE with JSONArray values. Thanks to Mino Togna (provided a testcase)
1812682 Byte and Short arrays throw an IllegalArgumentException

Posted by aalmiray 2007-12-21

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.