views:

247

answers:

3

I have looked at a few JSON libraries for Java, but few of them seem to follow the same serialization pattern as core Java serialization patterns. I would like to use a native Java JSON serialization object, but in the absence of that what third party library matches Native serialization and preferably will serialize anything marked serializable.

+1  A: 

best I have seen on paper is flexJSON it looks fairly complete and a very close match to the XMLEncoder pattern.

Kelly Anderson
+1  A: 

I'm pretty fond of the Jackson JSON Processor. Its fast, and very flexible.

jsight
A: 

Have you looked at google's gson ? It will serialize any POJO hierarchy very nicely for you.

npellow