Json-lib 2.2 released - No Fluff Just Stuff

Json-lib 2.2 released

Posted by: Andres Almiray on December 20, 2007

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

Download | Documentation | Faq | Changes

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:
  • 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
Andres Almiray

About Andres Almiray

Andres is a Java/Groovy developer and a Java Champion with more than 20 years of experience in software design and development. He has been involved in web and desktop application development since the early days of Java. Andres is a true believer in open source and has participated on popular projects like Groovy, Griffon, and DbUnit, as well as starting his own projects (Json-lib, EZMorph, GraphicsBuilder, JideBuilder). Founding member of the Griffon framework and Hackergarten community event. https://ch.linkedin.com/in/aalmiray

Why Attend the NFJS Tour?

  • » Cutting-Edge Technologies
  • » Agile Practices
  • » Peer Exchange

Current Topics:

  • Languages on the JVM: Scala, Groovy, Clojure
  • Enterprise Java
  • Core Java, Java 8
  • Agility
  • Testing: Geb, Spock, Easyb
  • REST
  • NoSQL: MongoDB, Cassandra
  • Hadoop
  • Spring 4
  • Cloud
  • Automation Tools: Gradle, Git, Jenkins, Sonar
  • HTML5, CSS3, AngularJS, jQuery, Usability
  • Mobile Apps - iPhone and Android
  • More...
Learn More »