Menu

Json-lib / News: Recent posts

Json-lib 2.4 Released

Dear Open Source Community,

I'm pleased to announce that Json-lib version 2.4 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

2843623 JSONObject.toBean does not process Lists
2652213 Groovy script JsonGroovyBuilder not working
3022109 JsonGroovyBuilder does not work from Groovy script
3030517 GJson.enhanceClasses() not working
2991816 Permgen memory leak with ThreadLocal
2692698 JSONSerializer.toJSON().toString() -> result != source
3047519 String start with "[" and end with "]" parsed error
2616780 Source is not passed to the NewBeanInstanceStrategy
3096454 Binaries and source files desynchronized
3052887 Sources jar not match json-lib-2.3-jdk15.jar
2131185 Allow bean processors to use json-lib's default processor. Thanks to Scott Bronson(provided patch)
2929940 Morphing elements in JSONArray.toCollection. Thanks to Arnout Engelen (provided patch)
2893329 A string starting and ending with quotes is badly parsed. Thanks to Sascha Theves (provided patch)
3022114 JsonGroovyBuilder does not work from Groovy script. Thanks to Sergey Bondarenko (provided patch)
3123950 Better support for parsing numbers. Thanks to Chirag Shah (provided patch)

Posted by aalmiray 2010-12-14

Source code moved to github

Greetings,

It's been a while since updates have been posted to the library. In order to inject new life to it I've decided to move the source code to gihub. The new repo can be found at

https://github.com/aalmiray/Json-lib

It should be easier now to submit patches and bug fixes. Clone away!
The project will keep using sf.net for all other facilities (docs, news, mailing lists, issues, website).

Cheers,
Andres

Posted by aalmiray 2010-12-01

Json-lib 2.2.3 released

Dear Open Source Community,

I'm pleased to announce that Json-lib version 2.2.3 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

2270596 JSONUtils not thread safe
2383773 Array of Maps with null key causes exception
2408679 JsonSlurper.parse(Reader) does not work correctly. Thanks to Tom Nichols (provided testcase)
2140653 JavaScript functions as quoted strings in values
2063201 Infinite loop in JSONArray._fromJSONTokener
2020482 Performance improvement for JSONUtils.quote Thanks to Peter Schubert (provided a patch)
1969942 Excludes should allow for exclusions based on class
1996038 JSONArray and ListIterator
1996152 Define reverse PropertyNameProcessor
2005661 Add class name to skipped properties messages

Posted by aalmiray 2008-12-09

Json-lib 2.2.2 released

Dear Open Source Community,
I'm pleased to announce that Json-lib version 2.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:

1974904 Inner beans not deserialized when using PropertySetStrategy
1984546 JsonVerifier does not account for Short values
1976920 Propagation of JsonConfig in JSONObject methods. Thanks to Ales Novy (provided a patch)
1976839 Performace patch in JSONUtil. Thanks to Ales Novy (provided a patch)
1955163 Json-lib cannot parse functions with more than one argument
1952095 Parsing error with line break after "function()"
1942571 XML/JSON roundtrip looses types
1919005 Does not support xml-json rules properly
1942504 Add a strategy for mutating a bean's property name
1913932 Interface Fields Support
Added JsonSlurper

Posted by aalmiray 2008-06-08

Json-lib 2.2.1 released

Dear Open Source Community,
I'm pleased to announce that Json-lib version 2.2.1 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:

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

Posted by aalmiray 2008-02-09

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 []... read more

Posted by aalmiray 2007-12-21

Json-lib 2.1 released

Dear Open Source Community,
I'm pleased to announce that Json-lib version 2.1 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:

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

Posted by aalmiray 2007-10-09

Json-lib 2.0 released

Dear Open Source Community,
I'm pleased to announce that Json-lib version 2.0 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:

Added StringMetaClass for type conversion
Added ArrayListMetaClass for type conversion
Added HashMapMetaClass for type conversion
Added primitive support for JSONObject.accumulate()
JSONObject.element() will not call accumulate() as it previously did
Removed duplicated code on JSONObject and JSONArray
Renamed JSONObject.putOpt to JSONObject.elementOpt
Renamed JSONObject.put to JSONObject.element
Renamed JSONArray.put to JSONArray.element
Added assertNull and assertNotNull to JSONAssert... read more

Posted by aalmiray 2007-07-20

Json-lib 2.0a2 is available

The next alpha release of Json-lib 2.0 is available at [http://json-lib.sourceforge.net/m2/repo/snapshot/].
It includes the features and bug fixes outlined in the following previous posts:

[http://jroller.com/page/aalmiray/?anchor=update_on_json_lib_s]Update on Json-lib's upcoming features
[http://jroller.com/page/aalmiray/?anchor=groovier_json]Groovier JSON

As always, feedback is greatly appreciated!

Posted by aalmiray 2007-06-20

Json-lib 1.1 released

Dear Open Source Community,
I'm pleased to announce that Json-lib version 1.1 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:

+ Updates:
Updated FAQ and Getting Started guide.
Promoted length() to JSON interface. Andres Almiray... read more

Posted by aalmiray 2007-03-31

Json-lib 1.0 released

Dear Open Source Community,
I'm pleased to announce that Json-lib version 1.0 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:

+ Updates
Removed deprecated classes.

+ Fixes:
1650535. String property incorrectly parsed as an array.

Posted by aalmiray 2007-02-12

Json-lib 1.0b2 Released

Dear Open Source Community,
I'm pleased to announce that Json-lib version 1.0b2 has been released.
This should be the last release before the 1.0 final, I kindly encourage
everyone interested in this project to submit any bugs you may find as
quickly as possible. Feature requests are accepted also, but they'll
pushed for the 2.0 release cycle

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. ... read more

Posted by aalmiray 2007-01-20

Json-lib 1.0b1 Released

Dear Open Source Community,
I'm pleased to announce that Json-lib version 1.0b1 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:
Added JSONAssert for easy JSON testing.

Updates:
Updated JSONFunction constructor for correct length of parameters.
Updated javadocs and site docs.
Only default constructors are public (JSONObject & JSONArray).
Class objects are converted to Strings (toJSON) and back (toJava).... read more

Posted by aalmiray 2006-12-18

Json-lib 0.9 Released

Dear Open Source Community,
I'm pleased to announce that json-lib version 0.9 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:
+ Added FAQ and "Who is using it" sections.
+ Added new JSONSerializer utility class.
+ Added new interface JSON to identify a valid JSON type (JSONObject, JSONArray, JSONNull).
+ Added support for JSONString in builders and value setters. FR 1557286.... read more

Posted by aalmiray 2006-10-12

Json-lib 0.8 Released

Dear Open Source Community,
I'm pleased to announce that json-lib version 0.8 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:
+ Refactored converter package into EZMorph (http://ezmorph.sourceforge.net).
+ Added RegexpUtils for easy regexp handling.
+ Added more tests.... read more

Posted by aalmiray 2006-08-29

EZMorph: new dependency

With the next release (post 0.7.1), Json-lib will use EZMorph to convert values when creating beans from JSON, instead of the converter package.

EZMorph is available from http://ezmorph.sourceforge.net

Posted by aalmiray 2006-08-15

Json-lib 0.7.1 Released

Dear Open Source Community,
I'm pleased to announce that json-lib version 0.7.1 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.

Fix for 1537557: wrong class number for JDK 1.3.1
This relase deprecates release 0.7

Posted by aalmiray 2006-08-09

Json-lib 0.7 Released

Dear Open Source Community,
I'm pleased to announce that json-lib version 0.6 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.

This release is JDK 1.3.1 compatible.

Posted by aalmiray 2006-08-07

Json-lib 0.6 Released

Dear Open Source Community,
I'm pleased to announce that json-lib version 0.6 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.

Additions:
Added support for DynaBean and java bean conversions.

Updates:
Updated the XML generated by XMLSerializer.
Updated usage documentation.
Updated the XML generated by XMLSerializer:
- JSONArray uses <a> for root element.
- JSONObject uses <o> for root element.

Posted by aalmiray 2006-07-25

Json-lib 0.4 Released

Dear Open Source Community,
I'm pleased to announce that json-lib version 0.4 has been released.
JSON-lib is a java library for transforming beans, maps and XML to JSON. It is based on the work by Douglas Crockford in http://www.json.org/java.

Additions:
- Added test suites for each package and for full project
Updates:
- Moved common methods of JSONObject, JSONArray to JSONUtils
- Renamed XML to XMLSerializer. Now uses XOM to parse documents
- Moved common assertion methods to Assertions (tests)
Fixes:
- Support js functions as type Fixes 1516306
Deletions:
- Deleted HTTP related classes

Posted by aalmiray 2006-07-12

Json-lib 0.2 Released

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

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition December 1999. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others.These properties make JSON an ideal data-interchange language.... read more

Posted by aalmiray 2006-07-01