Questions tagged [svenson]

svenson is a Java5 JSON generator/parser.

svenson is a Java5 JSON generator/parser. It lets you convert Java object graphs into JSON and vice versa. svenson offers an API and annotations to aid you in this.


References

3 questions
5
votes
4 answers

How do I convert a JSON array into a Java List. I'm using svenson

I am trying to convert multiple objects of the same type into a List in Java. For example, my json would be: { "Example": [ { "foo": "a1", "bar": "b1", "fubar": "c1" }, { …
Boundless
  • 2,444
  • 2
  • 25
  • 40
1
vote
1 answer

jcouchdb: svenson unable to parse json string

I'm trying to use jcouchdb (https://code.google.com/p/jcouchdb/) for accessing my CouchDB instance from Java. I have some JSon documents that I'd like to parse into Java classes - with Svenson, used in jcouchdb, and then put those parsed objects…
Marcin Cylke
  • 2,100
  • 2
  • 21
  • 40
0
votes
1 answer

org.svenson.JSONProperty to exclude dynamically properties

I have a Java app working with CouchDB. For parsing JSON from it, I use lib: com.google.code.svenson v.1.3.8 But, I've got a problem. I receive JSON, and one property in it I want to exclude. Example: {"groups":[], "norms":[], "unit":null,…
Andry
  • 655
  • 2
  • 11
  • 22