All,
Working on a project where we are migrating from JSON-RPC to jabsorb
and am a bit disappointed in the JSON serializer/deserializer library
in use.
I had hoped that the new version would have improved or ditched the
old implementation but it still seems severely limited compared to
others out there.
I've been using json-lib (
http://json-lib.sourceforge.net/) with good
success.
The basic problem I have with the library currently in use by jabsorb
is that it doesn't seem to handle complex objects (Lists of Maps for
instance).
Also, it seems to still lack little niceties like JSONObject
implementing the Map interface, etc. Also, (I'm on a role!) the new
version seems to introduce a checked exception when serializing/
deserializing (which causes more pain than profit in my opinion). In
short it is just not very usable for anything but very simple
situations.
Currently I'm doing a double serialization to get around the
limitations of the currently library which is a bit ugly and of course
more costly in CPU cycles.
Would updating jabsorb to use something like json-lib be a worthwhile
effort?
I note that this bug highlights many of my own problems:
http://issues.jabsorb.org/show_bug.cgi?id=9
However my solution is to simply rip out the current serializer and
replace it with a better one that is already out there.
I note that no work has been done on this bug in almost two years.
I'd be willing to do the work if everyone sees this as a useful
enhancement.
Note jabsorb and json-lib are both Apache 2.0 licensed.
Thanks,
Matt