Changes Report

Release History

VersionDateDescription
2.2.12008-02-08Service release
2.22007-12-20Release 2.2
2.12007-10-08Release 2.1
2.02007-07-20The _2.0_ release
2.0a32007-07-10Third 2.0 Alpha release
2.0a22007-06-07Second 2.0 Alpha release
2.0a12007-05-22First 2.0 Alpha release
1.12007-03-31Release 1.1
1.0.12007-02-27Service release
1.02007-02-11The _1.0_ release
1.0b22007-01-20Second 1.0 beta release
1.0b12006-12-18First 1.0 beta release
0.92006-10-12Sixth public release
0.82006-08-29Fifth public release
0.7.12006-08-09Service release
0.72006-08-07Fourth public release
0.62006-07-24Third public release
0.42006-07-11Second public release
0.22006-07-01First public release

Get the RSS feed of the last changes

Release 2.2.1 - 2008-02-08

TypeChangesBy
Force top JSONObject while reading from XML Fixes 1889982.Andres Almiray
Add a CycleDetectionStrategy that skips the property Fixes 1889973.Andres Almiray
Json-lib 2.1 jar contains groovy metaclass Fixes 1843114.Andres Almiray
Need configurable JsonValueProcessorMatcher Fixes 1873231.Andres Almiray
Use order-preserving map in JSONObject Fixes 1858073.Andres Almiray
Add a skipWhitespace flag to XMLSerializer Fixes 1875695.Andres Almiray

Release 2.2 - 2007-12-20

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

Release 2.1 - 2007-10-08

TypeChangesBy
Customize bean instantiation in JSONObject.toBean() Fixes 1808430.Andres Almiray
Enable custom selection of JsonBeanProcessors. Fixes 1806171.Andres Almiray
JSONObject/JSONArray are not thread safe. Thanks to Yee_Keat Phuah (provided a patch). Fixes 1798641.Andres Almiray
Allow attribute filters on method fromObject Fixes 1789704.Andres Almiray
Add support for java.sql.Date in JsDate*Processors Fixes 1785314.Andres Almiray
Move JSONSerializer's configuration to JsonConfig Fixes 1784862.Andres Almiray
JsonConfig should not be singleton Fixes 1784859.Andres Almiray
Setter always passes in Object[]. Thanks to jcue786[at]users[dot] sourceforge[dot]net Fixes 1769578.Andres Almiray
JSONArray.toArray always returns array of type Object[]. Thanks to sebthom[at]users[dot] sourceforge[dot]net Fixes 1769559.Andres Almiray
JSONObject.toBean() empty string error [jettison integration] . Thanks to jcue786[at] users[dot]sourceforge[dot] net Fixes 1764768.Andres Almiray
JSONObject.toBean() Error with nested bean arrays Fixes 1763699.Andres Almiray
JSONObject.get() doesn't follow java.util.Map contract Fixes 1760194.Andres Almiray

Release 2.0 - 2007-07-20

TypeChangesBy
Bean property of type String is transformed to JSONArray. Thanks to sckimos[at] gmail[dot]com Fixes 1753528.Andres Almiray
Make exceptions thrown by toBean() more explicit. Thanks to Oliver Zyngier Fixes 1751973.Andres Almiray

Release 2.0a3 - 2007-07-10

TypeChangesBy
Add JRuby support Fixes 1748029.Andres Almiray
Support cycle detection in static builders Fixes 1747394.Andres Almiray
JDK 1.4 compatibility. Thanks to Marcelo Liberato (provided a patch) Fixes 1746838.Andres Almiray
JSONArray.put(long) not behaving properly for longs > 1L < < 62. Thanks to Mathias Herberst (provided a patch) Fixes 1746272.Andres Almiray
Error in Attributes conversion from xml to json in 2.0a2 Fixes 1739066.Andres Almiray
Add readFromFile to XMLSerializer Fixes 1739247.Andres Almiray

Release 2.0a2 - 2007-06-07

TypeChangesBy
Added StringMetaClass for type conversionAndres Almiray
Added ArrayListMetaClass for type conversionAndres Almiray
Added HashMapMetaClass for type conversionAndres Almiray
Add a JSONBuilder (like Grails) Fixes 1656301.Andres Almiray
Add leftShift (Groovy) operator support Fixes 1728997.Andres Almiray
Make JSONObject/JSONArray Comparable Fixes 1728993.Andres Almiray
Support for preventing JavaScript Hijacking in web env Fixes 1693562.Andres Almiray
Add SAX-like event support Fixes 1681775.Andres Almiray
Added primitive support for JSONObject.accumulate()Andres Almiray
JSONObject.element() will not call accumulate() as it previously didAndres Almiray
Removed duplicated code on JSONObject and JSONArrayAndres Almiray

Release 2.0a1 - 2007-05-22

TypeChangesBy
Renamed JSONObject.putOpt to JSONObject.elementOptAndres Almiray
Renamed JSONObject.put to JSONObject.elementAndres Almiray
Renamed JSONArray.put to JSONArray.elementAndres Almiray
Added assertNull and assertNotNull to JSONAssertAndres Almiray
Skip transient field in a class Fixes 1715483.Andres Almiray
Make JSONArray an implementation of java.util.List Fixes 1656299.Andres Almiray
Make JSONObject an implementation of java.util.Map Fixes 1656297.Andres Almiray
Add type handler support Fixes 1636658.Andres Almiray
Add POGO support Fixes 1656300.Andres Almiray
option to remove the double-quote around the property name Fixes 1694877.Andres Almiray
JSONAssert accepts unequal JSONArrays, JSONObjects. Thanks to dcrosta[at] users[dot]sourceforge[dot] net (provided a patch) Fixes 1713184.Andres Almiray
JSONUtils.stripQuotes generates an Exception. Thanks to Rodrigo Pantoni and Thomas Spiegl Fixes 1719662.Andres Almiray
Optional space trimming when reading XML Fixes 1693658.Andres Almiray
Optional removal of namespace prefixes when reading XML Fixes 1693654.Andres Almiray
Skip namespaces when reading from XML Fixes 1693652.Andres Almiray

Release 1.1 - 2007-03-31

TypeChangesBy
Updated FAQ and Getting Started guideAndres Almiray
Added NoopJavaIdentifierTransformer and made it the default (performs no conversion)Andres Almiray
XMLSerializer can not handle namespace declarations Fixes 1690942.Andres Almiray
[Regression] toBean() fails with namespaced properties Fixes 1690941.Andres Almiray
Allow transformation of key values to proper Java identifier Fixes 1684034.Andres Almiray
Upgrade XML support Fixes 1656551.Andres Almiray
Promoted length() to JSON interfaceAndres Almiray
Skip type information when writing XML Fixes 1679986.Andres Almiray
Move child properties to parent when writing XML Fixes 1679985.Andres Almiray
Allow parsing of duplicate properties Fixes 1679982.Andres Almiray

Release 1.0.1 - 2007-02-27

TypeChangesBy
[Compatibility] Constructor JSONObject( String) does not work Fixes 1670146.Andres Almiray

Release 1.0 - 2007-02-11

TypeChangesBy
Removed deprecated classesAndres Almiray
String property incorrectly parsed as an array. Tests provided by paulfield[at] users[dot]sourceforge[dot] net & ekeogh[at]thoughtworks[dot] com Fixes 1650535.Andres Almiray

Release 1.0b2 - 2007-01-20

TypeChangesBy
Updated javadocsAndres Almiray
Moved interface JSONTypes to net.sf.json.xmlAndres Almiray
Deprecated JSONDynaBean, JSONDynaClass & DynaBeanToBeanMorpher. Use MorphDynaBean, MorphDynaClass & BeanMorpher from EZMorph insteadAndres Almiray
Removed net.sf.json.util.CDL, repeated functionalityAndres Almiray
JSONDynaBean nested arrays not treated as an array. Test provided by arco.vandenheuvel[at] points[dot]com Fixes 1635890.Andres Almiray
JSONArray does not transforms byte[], short[] and long[] Fixes 1630742.Andres Almiray
JSONArray is missing validation on float[] and double[] Fixes 1630736.Andres Almiray
Validate ECMAScript max & min Number values. (rolled-back) Fixes 1630258.Andres Almiray
JSONArray.put does not use excludes Fixes 1622676.Andres Almiray
JSONObject.put does not use excludes Fixes 1622675.Andres Almiray
JSONArray does not pass excludes Fixes 1622674.Andres Almiray

Release 1.0b1 - 2006-12-18

TypeChangesBy
Added JSONAssert for easy JSON testingAndres Almiray
Updated JSONFunction constructor for correct length of parametersAndres Almiray
Updated javadocs and site docsAndres Almiray
Only default constructors are public (JSONObject & JSONArray)Andres Almiray
Class objects are converted to Strings (toJSON) and back (toJava)Andres Almiray
Skip a property without write method Fixes 1614276.Andres Almiray
Skip a property without read method Fixes 1614275.Andres Almiray
Annotation should not be transformed Fixes 1614273.Andres Almiray
Change IAEs for JSONException Fixes 1614278.Andres Almiray
JSONObject tries to access Enum.getDeclaringClass() Fixes 1613402.Andres Almiray
Inspect property's value type in factory methods Fixes 1611204.Andres Almiray
Support different encodings on XmlSerializer Fixes 1610979.Andres Almiray
JSONDynaClass allows multidimensional arrays Fixes 1608212.Andres Almiray
Primitives support for JSONDynaBean Fixes 1607448.Andres Almiray
Support Java 1.5 Enum in JSONObject and JSONArray Fixes 1557286.Andres Almiray
JDK 1.3 RuntimeException is not nestable Fixes 1606609.Andres Almiray
Add printer friendly methods to JSON interface Fixes 1602386.Andres Almiray
JSONArray fails to convert an array of BigDecimals/BigInteger Fixes 1596168.Andres Almiray
Nested Lists were not handled properly in JSONObject.toBean() Fixes 1592799.Andres Almiray

Release 0.9 - 2006-10-12

TypeChangesBy
Added FAQ and "Who is using it" sectionsAndres Almiray
Added new JSONSerializer utility classAndres Almiray
Added new interface JSON to identify a valid JSON type (JSONObject, JSONArray, JSONNull)Andres Almiray
Added support for JSONString in builders and value settersAndres Almiray
Removed JSONObject.append() as it was very similar to JSONObject.accumulate()Andres Almiray
JSONObject and JSONarray will convert Byte/Short/Long to Integer, Float to Double when neededAndres Almiray
JSONArray.fromObject now allows creation of a single element array (all valid types)Andres Almiray
Cleaned up the core API, moved mixed purpouse classes to net.sf.json.utilAndres Almiray
Updated front page and howto documentationAndres Almiray
Multiple nested JSONException Fixes 1564992.Andres Almiray
JSONObject.toBean() generates a ClassCastException Fixes 1553617.Andres Almiray

Release 0.8 - 2006-08-29

TypeChangesBy
Refactored converter package into EZMorph (http://ezmorph.sourceforge.net)Andres Almiray
Added RegexpUtils for easy regexp handlingAndres Almiray
Added more testsAndres Almiray
Updated "Getting Started" documentationAndres Almiray
Moved RegexpMatchers to package net.sf.json.regexpAndres Almiray
Perl5RegexpMatcher is missing a return statement Fixes 1543117.Andres Almiray
JSONObject.toBean must handle interfaces Fixes 1542104.Andres Almiray
JSONObject.toBean can not process all nested beans Fixes 1542092.Andres Almiray
JSONArray did not create multidimensional arrays correctly Fixes 1540196.Andres Almiray
JSONObject's fromObject() and fromBean() did not support DynaBeans properly Fixes 1540137.Andres Almiray
XmlSerializer writes wrong JSONFunction data Fixes 1538330.Andres Almiray
JSONObject.fromObject() does not work properly when passed a boolean as parameter in JVM 1.5+ Fixes 1538095.Andres Almiray

Release 0.7.1 - 2006-08-09

TypeChangesBy
Json-lib had wrong class numbers for JDK 1.3.1 Fixes 1537557.Andres Almiray

Release 0.7 - 2006-08-07

TypeChangesBy
Make Json-lib JDK 1.3.1 compatible Fixes 1529946.Andres Almiray

Release 0.6 - 2006-07-24

TypeChangesBy
Added support for DynaBean and java bean conversionsAndres Almiray
JSONArray uses < a > for root element, JSONObject uses < o > for root elementAndres Almiray
Updated usage documentationAndres Almiray

Release 0.4 - 2006-07-11

TypeChangesBy
Added test suites for each package and for full projectAndres Almiray
Support js functions as type Fixes 1516306.Andres Almiray
Moved common methods of JSONObject, JSONArray to JSONUtilsAndres Almiray
Renamed XML to XMLSerializer. Now uses XOM to parse documentsAndres Almiray
Moved common assertion methods to Assertions (tests)Andres Almiray
Deleted HTTP related classesAndres Almiray

Release 0.2 - 2006-07-01

TypeChangesBy
First releaseAndres Almiray