Mined Opinions For API: net.sf.flexjson

This tab contains all the opinions collected from Stack Overflow about the API. The other tabs present summaries of the opinions using different algorithms.
  • I've seen some performance metrics on GSON - FlexJSON and Jackson Mapper are also easy to use APIs for converting POJO into JSON, and have better overall speed/performance than GSON.. details
  • Greeeaaaat.. details
  • Thanks, but at the time the map sorting is already changed.. details
  • @SJuan76 well, yes and no.. details
  • I've seen some performance metrics on GSON - FlexJSON and Jackson Mapper are also easy to use APIs for converting POJO into JSON, and have better overall speed/performance than GSON.. details
  • Yep I've been much happier with FlexJSON than GSON in Play too.. details
  • That looks interesting.. details
  • I tried this for Map, with and without include("values"), but the json result is the same; I was expecting to see class type data in the json for different Object type in the map when using "values"?. details
  • @SJuan76 well, yes and no.. details
  • Thank you Eugene!. details
  • URL_http://flexjson.sourceforge.net / feels like a good alternative.. details
  • URL_http://flexjson.sourceforge.net / feels like a good alternative.. details
  • I hope this will help someone out there.. details
  • If you're not married to Jackson, I believe something similar to this can be accomplished using FlexJSON.. details
  • So the ObjectFactory layer is before we have a any strong typed object like Document.. details
  • Then it uses a series of ObjectFactory to map those simple objects into the actual objects you are mapping into.. details
  • Thanks for your answer!. details
  • Also, any suggestions on how this could be accomplished using any other library (like gson, flexjson, etc) is also interesting.. details
  • Reason being is because the values in your Map vary in type.. details
  • So classes like standard collections there is no way Flexjson can infer the contained type from a Collection/Map class because those are simple Object references at runtime.. details
  • Can anyone please help?Thank you After introducing ObjectFactory as suggested by chubbsondubs: CODESNIPPET_JAVA6 .. details
  • The value object has HashMap type and it prints: CODESNIPPET_JAVA7 .. details
  • I second Jackson in favour of FlexJson; FlexJson lacks a default Jax-RS provider and doesn't correctly parse generics (like SomeObject).Also Jackson has very elegant configuration (once you find out how to plug it in!). details
  • For example FlexJSON to customize serialization has a powerful mechanism called URL_http://flexjson.sourceforge.net/ [Transformers] .. details
  • For example FlexJSON to customize serialization has a powerful mechanism called URL_http://flexjson.sourceforge.net/ [Transformers] .. details
  • Can you also please give a good link for Java Bean Specification.Thanks in advance.. details
  • I would like to serialize class Foo (that can be persisted) into JSON using flexjson (if you know some other library that support required functionality please speak up).. details
  • I've only used flexjson, but the other 2 have very good reps. For HATEOAS, there is spring-hateoas (on github) or Jersey.. details
  • So thank you very much for all the assistance @emt14.. details
  • So thank you very much for all the assistance @emt14.. details
  • I realize there are other solutions out there, like Jackson, but this is part of a large codebase that already uses FlexJSON a lot.. details
  • I've tried: "user", "success.user", "values.success.user".. details
  • Thanks!.. details
  • +1 looks good!. details
  • Thanks!.. details
  • +1 looks good!. details
  • Anyway, the simplest thing I can think of is to install an _ObjectFactory_ on that list.. details
  • Something like: CODESNIPPET_JAVA1 .. details
  • Good news is there is a work around**.. details
  • Well from looking at the code, Flexjson is coded to handle this out of the box.. details
  • I hope you can provide some guidance here.. details
  • So each vendor, catalog, document is represented by a JSONObject and all child catalogues and documents are within a JSONArray.So far everything works fine with Flexjson and the following deserialization code: CODESNIPPET_JAVA2 .. details
  • But I think that way is not really nice to go, as the library can be pretty deep.. details
  • The json is fetched from a web service I have no influence on and looks something like this: CODESNIPPET_JAVA1 .. details
  • The application is a kind of library with several vendors that can have some catalogs with more catalogsand documents in them.. details
  • So the json in that case looks like this: CODESNIPPET_JAVA3 .. details
  • I used URL_http://flexjson.sourceforge.net/ [FlexJson] and it was very easy to start with and then with different use cases coming many functionalities of the library like URL_http://flexjson.sourceforge.net/javadoc/flexjson/transformer/package- summary.html [Transformer] and URL_http://flexjson.sourceforge.net/javadoc/flexjson/factories/package- summary.html [Factories] have been a great help.. details
  • I used URL_http://flexjson.sourceforge.net/ [FlexJson] and it was very easy to start with and then with different use cases coming many functionalities of the library like URL_http://flexjson.sourceforge.net/javadoc/flexjson/transformer/package- summary.html [Transformer] and URL_http://flexjson.sourceforge.net/javadoc/flexjson/factories/package- summary.html [Factories] have been a great help.. details
  • Note that the reference returned in p is same as charlieClone just with updated values.. details
  • Note that the reference returned in p is same as charlieClone just with updated values.. details
  • As you can see I am trying now with CODETERM2 classes but I haven't succeeded.. details
  • URL_http://flexjson.sourceforge.net/ [FlexJson] is also a good library similar to jackson that i have tried.. details
  • Please share which one did you like and why.. details
  • URL_http://flexjson.sourceforge.net/ [FlexJson] is also a good library similar to jackson that i have tried.. details
  • Please share which one did you like and why.. details
  • Adding the Transformer by Path (vs by Class) is not supported as FlexJSON forces TypeTransformer for null values : JSONContext.java : line 95 : CODESNIPPET_JAVA3 .. details
  • That's precisely how flexjson works, and you have a lot of flexibility to define at each point how to deserialize it.. details
  • However, when I get this object back, I want to deserialize it to a java class that looks like this: CODESNIPPET_JAVA2 .. details
  • So I'm getting an object back from a server that looks like this: CODESNIPPET_JAVA1 .. details
  • Right now my deserialization line of code looks like this: CODESNIPPET_JAVA3 .. details
  • Thank you for any help!. details
  • If I get a response back with 'null' as the Data attribute, everything works just fine (since you can assign null to a String).. details
  • Your best option is Flexjson.. details
  • Your best option is Flexjson.. details
  • Thank you for the suggestion, but I would like to avoid using a serializer at all costs if I can.. details
  • Thank you for the suggestion, but I would like to avoid using a serializer at all costs if I can.. details
  • Since this is a highly voted java+json question, might be nice to summarize answers; especially since this is a rather old question, and many new options have become available (Spring MVC, Jersey/RESTeasy/CXF/Restlet; Gson/Jackson/FlexJSON).. details
  • Thanks!. details
  • I am serializing a class like this into JSON using Flexjson: CODESNIPPET_JAVA1 .. details
  • Since, as I already mentioned, an Item object may contain many null-value fields, the outcoming JSON is longer than effectively needed.. details
  • I am using FlexJson to support my entities with JSON.. details
  • Thanks in advance!. details
  • I would appreciate any help!. details
  • Thanks, right now I saw 4 solutions - spring-json, jackson (delivered with Spring-MVC), FlexJson (delivered with SpringRoo) and gson... After few hours of play with first 3 of them i found that FlexJSON is fastest in setting up, spring-json has best docs and Spring-mvc jackson has working samples on spring svn.. details
  • I want to go with Jackson because it is much faster than the alternatives, but I like FlexJSON the most.. details
  • I want to go with Jackson because it is much faster than the alternatives, but I like FlexJSON the most.. details
  • There are also certain things that need to be changed but the FlexJSON transformer is perfect for those.. details
  • I'm recommend you to use flexjson library URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] IMHO, it more simple and usable library.. details
  • I'm recommend you to use flexjson library URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] IMHO, it more simple and usable library.. details
  • I'm recommend you to use flexjson library URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] IMHO, it more simple and usable library.. details
  • I'm recommend you to use flexjson library URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] IMHO, it more simple and usable library.. details
  • hey hi i didnt find in it can you give me link.. details
  • hey hi i didnt find in it can you give me link.. details
  • Try the URL_http://code.google.com/p/google-gson/ [GSon] from google and and URL_http://flexjson.sourceforge.net/ [FlexJson] Both are recommended .. details
  • Try the URL_http://code.google.com/p/google-gson/ [GSon] from google and and URL_http://flexjson.sourceforge.net/ [FlexJson] Both are recommended .. details
  • Try the URL_http://code.google.com/p/google-gson/ [GSon] from google and and URL_http://flexjson.sourceforge.net/ [FlexJson] Both are recommended .. details
  • Try the URL_http://code.google.com/p/google-gson/ [GSon] from google and and URL_http://flexjson.sourceforge.net/ [FlexJson] Both are recommended .. details
  • It looks like the version of the flexjson package you supplied is not compatible with your android version.. details
  • Help would be appreciated Greetings .. details
  • Okay .. this works and when I call this webservice I get the following result: [[50.0830292,8.2387331],[50.0830292,8.2387331],[50.0752003,8.2397125]] In my Android Client I try to deserialize that List of Objects: CODESNIPPET_JAVA2 .. details
  • Here are more good choices: URL_http://wiki.fasterxml.com/JacksonHome [Jackson] -- powerful data binding (JSON to/from POJOs), streaming (ultra fast), tree model (convenient for untyped access) URL_http://flexjson.sourceforge.net/ [Flex-JSON] -- highly configurable serialization EDIT (Aug/2013): One more to consider: URL_http://code.google.com/p/genson/ [Genson] -- functionality similar to Jackson, aimed to be easier to configure by developer .. details
  • I am trying to deserialize this JSON like this: CODESNIPPET_JAVA2 .. details
  • Flexjson works off Java Beans and PObject does not follow the Java Bean specification.. details
  • Please help me if someone knows about this CODESNIPPET_JAVA1 .. details
  • Please help me if someone knows about this CODESNIPPET_JAVA1 .. details
  • I wrote a simple program but it seems not to be serializing the object attributes.. details
  • I am new to FlexJson and was following URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] for simple tutorial.. details
  • I am new to FlexJson and was following URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] for simple tutorial.. details
  • I am new to FlexJson and was following URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] for simple tutorial.. details
  • I am new to FlexJson and was following URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] for simple tutorial.. details
  • Hi, thanks for your answer.. details
  • Thanks!.. details
  • JSONLib is awesome as a core JSON library when you just want to process all elements of a JSON.. details
  • JSONLib is awesome as a core JSON library when you just want to process all elements of a JSON.. details
  • I've used URL_http://json-lib.sourceforge.net/ [JSONLib] , URL_http://flexjson.sourceforge.net/ [FlexJSON] and URL_http://code.google.com/p/google-gson/ [Gson] all with great success.. details
  • I've used URL_http://json-lib.sourceforge.net/ [JSONLib] , URL_http://flexjson.sourceforge.net/ [FlexJSON] and URL_http://code.google.com/p/google-gson/ [Gson] all with great success.. details
  • FlexJSON shines with its deepSerialize method that can properly handle serializing all get methods presented in a bean obtained from Hibernate (lazy loaded).. details
  • I've used URL_http://json-lib.sourceforge.net/ [JSONLib] , URL_http://flexjson.sourceforge.net/ [FlexJSON] and URL_http://code.google.com/p/google-gson/ [Gson] all with great success.. details
  • I've used URL_http://json-lib.sourceforge.net/ [JSONLib] , URL_http://flexjson.sourceforge.net/ [FlexJSON] and URL_http://code.google.com/p/google-gson/ [Gson] all with great success.. details
  • I like FlexJSON as well and even modified it to be compatible with Microsoft's JSON serializer really easily.. details
  • It has some cool features such as deepSerialize to send the entire graph and it doesn't break with bi directional relationships.. details
  • We have been using Flexjson for converting Java objects to JSON and have found it very easy to use.. details
  • Formatting dates on the server side is often handy too CODESNIPPET_JAVA3 .. details
  • Formatting dates on the server side is often handy too CODESNIPPET_JAVA3 .. details
  • FlexJSON looks like the best Java->JSON serialization option I've seen.. details
  • URL_http://flexjson.sourceforge.net/javadoc/flexjson/JSONDeserializer.html [ URL_http://flexjson.sourceforge.net/javadoc/flexjson/JSONDeserializer.html ] I'm unfamiliar with Jackson's methods for doing similar things, but I can say that FlexJSON is very performant, and in general intuitive to use during serialization/deserialziation steps.. details
  • URL_http://flexjson.sourceforge.net/javadoc/flexjson/JSONDeserializer.html [ URL_http://flexjson.sourceforge.net/javadoc/flexjson/JSONDeserializer.html ] I'm unfamiliar with Jackson's methods for doing similar things, but I can say that FlexJSON is very performant, and in general intuitive to use during serialization/deserialziation steps.. details
  • Flexjson is great, even when dealing with nasty backend developers ;-).. details
  • I think the reason you are getting a List instead of List is a bug in Flexjson.. details
  • I think the reason you are getting a List instead of List is a bug in Flexjson.. details
  • I think I made myself not clear, I always get a List but in case there is only one document I don't have Documents in the List but HashMaps, so List as catalog.document instead of List.. details
  • By default it uses double if its a decimal and long if its an integer.. details
  • By default it uses double if its a decimal and long if its an integer.. details
  • Please note that this is just an example to explain the algorithm**, it doesn't perform any check**, it doesn't remove padding** and it's even terribly slow**.. details
  • Please note that this is just an example to explain the algorithm**, it doesn't perform any check**, it doesn't remove padding** and it's even terribly slow**.. details
  • Hi,chubbsondubs,I had a similar problem.Does it affect if your getter and setters are private or your constructor is private?. details
  • @Nevzz03 you may use [link]( URL_http://flexjson.sourceforge.net/)flexjson java lib to create you json object instead.. details
  • Another library I used before discovering this tip was URL_http://flexjson.sourceforge.net/ [FlexJSON] .. details
  • Another library I used before discovering this tip was URL_http://flexjson.sourceforge.net/ [FlexJSON] .. details
  • Another library I used before discovering this tip was URL_http://flexjson.sourceforge.net/ [FlexJSON] .. details
  • Another library I used before discovering this tip was URL_http://flexjson.sourceforge.net/ [FlexJSON] .. details
  • Does anyone have an idea what I'm doing wrong and how I can fix it?. details
  • That's a bug that should probably be fixed.. details
  • I think that's roughly what would fix that bug, but should also fix your problem.. details
  • I think that's roughly what would fix that bug, but should also fix your problem.. details
  • But unfortunately, the web service straps the JSONArrays to simple JSONObjects if a catalog contains only a single documentor a catalog contains just one catalog.. details
  • Here is an example copied from URL_http://flexjson.sourceforge.net/#Deserialization [FlexJson-Doc] The deserializeInto function takes your string and reference to existing object.. details
  • Here is an example copied from URL_http://flexjson.sourceforge.net/#Deserialization [FlexJson-Doc] The deserializeInto function takes your string and reference to existing object.. details
  • But now after looking at multiple examples I am at a loss, is it possible to deserialize directly into a list?. details
  • I'm doing this a lot of time using hibernate and then converting the object of collections into json using URL_http://flexjson.sourceforge.net/ [flexjson] .. details
  • I'm doing this a lot of time using hibernate and then converting the object of collections into json using URL_http://flexjson.sourceforge.net/ [flexjson] .. details
  • Using URL_http://flexjson.sourceforge.net/ [flexjson] : CODESNIPPET_JAVA1 .. details
  • Using URL_http://flexjson.sourceforge.net/ [flexjson] : CODESNIPPET_JAVA1 .. details
  • Using URL_http://flexjson.sourceforge.net/ [flexjson] : CODESNIPPET_JAVA1 .. details
  • Using URL_http://flexjson.sourceforge.net/ [flexjson] : CODESNIPPET_JAVA1 .. details
  • because of the JSON Serializer: URL_http://flexjson.sourceforge.net/javadoc/flexjson/JSONSerializer.html .. details
  • URL_http://flexjson.sourceforge.net [ URL_http://flexjson.sourceforge.net ] .. details
  • URL_http://flexjson.sourceforge.net [ URL_http://flexjson.sourceforge.net ] .. details
  • How to force FlexJson in java to deserialize a json object to a string?. details
  • You'll have to ensure your object conforms to the java bean standard, but it's really easy to use: URL_http://flexjson.sourceforge.net [ URL_http://flexjson.sourceforge.net ] Oh and its faster that GSON.. details
  • You'll have to ensure your object conforms to the java bean standard, but it's really easy to use: URL_http://flexjson.sourceforge.net [ URL_http://flexjson.sourceforge.net ] Oh and its faster that GSON.. details
  • Here is a sample code block CODESNIPPET_JAVA1 .. details
  • The deserialization doesn't give any errors, but the keys get converted to String.. details
  • You can also serialize the object using flexjson: URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] .. details
  • You can also serialize the object using flexjson: URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] .. details
  • This is in so far a problem, because I would like to send the generated JSON from a web server to a mobile client over a wireless connection via WiFi, 3G, EDGE or GPRS (i.e., more bandwidth is required, which results in less speed).. details
  • I have not found an easy generic solution using annotations or built in functionality in the above libraries but I have probably overlooked them.. details
  • I've looked into XStream, Eclipse MOXy, FlexJSON, JSON-lib & gson My goal is to get rid of my json wrapper classes and minimize code.. details
  • Yes check out URL_http://flexjson.sourceforge.net [ URL_http://flexjson.sourceforge.net ] .. details
  • Other than performance, there's URL_http://www.cowtowncoder.com/blog/archives/2010/11/entry_434.html [this- blog-post] ("7 Jackson killer features") that outlines what Jackson has to offer on its own (not considering integration with frameworks) -- other libraries have their own strengths, and for URL_http://flexjson.sourceforge.net/ [flex-json] I understand its output side (writing JSON) is quite flexible and powerful.. details
  • Other than performance, there's URL_http://www.cowtowncoder.com/blog/archives/2010/11/entry_434.html [this- blog-post] ("7 Jackson killer features") that outlines what Jackson has to offer on its own (not considering integration with frameworks) -- other libraries have their own strengths, and for URL_http://flexjson.sourceforge.net/ [flex-json] I understand its output side (writing JSON) is quite flexible and powerful.. details
  • Other than performance, there's URL_http://www.cowtowncoder.com/blog/archives/2010/11/entry_434.html [this- blog-post] ("7 Jackson killer features") that outlines what Jackson has to offer on its own (not considering integration with frameworks) -- other libraries have their own strengths, and for URL_http://flexjson.sourceforge.net/ [flex-json] I understand its output side (writing JSON) is quite flexible and powerful.. details
  • Other than performance, there's URL_http://www.cowtowncoder.com/blog/archives/2010/11/entry_434.html [this- blog-post] ("7 Jackson killer features") that outlines what Jackson has to offer on its own (not considering integration with frameworks) -- other libraries have their own strengths, and for URL_http://flexjson.sourceforge.net/ [flex-json] I understand its output side (writing JSON) is quite flexible and powerful.. details
  • Jackson ( URL_http://wiki.fasterxml.com/JacksonHome ) and Flex-JSON ( URL_http://flexjson.sourceforge.net /) for example.. details
  • But know I have problems deserialize the data on the android side.. details
  • But know I have problems deserialize the data on the android side.. details
  • But when I try to deserialize the data, I get an exception that the json string has to start with "{".. details
  • But when I try to deserialize the data, I get an exception that the json string has to start with "{".. details
  • As of this writing, there are these 20: URL_http://www.JSON.org/java/index.html [org.json] URL_https://github.com/upictec/org.json.me/ [org.json.me] URL_http://jackson.codehaus.org/ [Jackson-JSON-Processor] URL_http://json-lib.sourceforge.net/ [Json-lib] URL_http://developer.berlios.de/projects/jsontools/ [JSON-Tools] URL_http://code.google.com/p/json-simple/ [json-simple] URL_http://www.stringtree.org/stringtree-json.html [Stringtree] URL_http://sojo.sourceforge.net/ [SOJO] URL_http://www.restlet.org/ [Restlet] URL_http://jettison.codehaus.org/ [Jettison] URL_http://json-taglib.sourceforge.net/ [json-taglib] URL_http://xstream.codehaus.org/ [XStream] URL_http://code.google.com/p/jsonmarshaller/ [JsonMarshaller] URL_http://flexjson.sourceforge.net/ [Flexjson] URL_http://sourceforge.net/projects/jontools/ [JON-tools] URL_http://code.google.com/p/google-gson/ [google-gson] URL_http://argo.sourceforge.net/ [Argo] URL_http://pivot.apache.org/ [Pivot] URL_http://jwm.slavitica.net/p/projects/jsonij [jsonij] URL_http://sourceforge.net/projects/fastjson/ [fastjson] ...but of course the list can change.. details
  • As of this writing, there are these 20: URL_http://www.JSON.org/java/index.html [org.json] URL_https://github.com/upictec/org.json.me/ [org.json.me] URL_http://jackson.codehaus.org/ [Jackson-JSON-Processor] URL_http://json-lib.sourceforge.net/ [Json-lib] URL_http://developer.berlios.de/projects/jsontools/ [JSON-Tools] URL_http://code.google.com/p/json-simple/ [json-simple] URL_http://www.stringtree.org/stringtree-json.html [Stringtree] URL_http://sojo.sourceforge.net/ [SOJO] URL_http://www.restlet.org/ [Restlet] URL_http://jettison.codehaus.org/ [Jettison] URL_http://json-taglib.sourceforge.net/ [json-taglib] URL_http://xstream.codehaus.org/ [XStream] URL_http://code.google.com/p/jsonmarshaller/ [JsonMarshaller] URL_http://flexjson.sourceforge.net/ [Flexjson] URL_http://sourceforge.net/projects/jontools/ [JON-tools] URL_http://code.google.com/p/google-gson/ [google-gson] URL_http://argo.sourceforge.net/ [Argo] URL_http://pivot.apache.org/ [Pivot] URL_http://jwm.slavitica.net/p/projects/jsonij [jsonij] URL_http://sourceforge.net/projects/fastjson/ [fastjson] ...but of course the list can change.. details
  • Flexjson 2.1 is supposed to work on Android according URL_http://flexjson.sourceforge.net/ [to-this] (scroll to the bottom).. details
  • Flexjson 2.1 is supposed to work on Android according URL_http://flexjson.sourceforge.net/ [to-this] (scroll to the bottom).. details
  • I apologize if I am doing it wrong, I am new to this CODESNIPPET_JAVA3 .. details
  • I apologize if I am doing it wrong, I am new to this CODESNIPPET_JAVA3 .. details
  • (Update from deleted answer):** I tried to modify the code using getter/setter methods, now it fails saying the following.. details
  • (Update from deleted answer):** I tried to modify the code using getter/setter methods, now it fails saying the following.. details
  • What use cases are you worried about?. details
  • Will give it a shot and report back.. details
  • URL_http://flexjson.sourceforge.net/ [Flex-JSON] should work - it will use the bean property introspector to pull the object, and I assume the proxy class implements those properly.. details
  • But I admit that I haven't bothered to compare all the alternatives :-) .. details
  • But I admit that I haven't bothered to compare all the alternatives :-) .. details
  • I've been meaning to try URL_http://flexjson.sourceforge.net/ [Flexjson] .. details
  • I've been meaning to try URL_http://flexjson.sourceforge.net/ [Flexjson] .. details
  • URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net ] Here are some examples: CODESNIPPET_JAVA1 .. details
  • URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net ] Here are some examples: CODESNIPPET_JAVA1 .. details
  • URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net ] Here are some examples: CODESNIPPET_JAVA1 .. details
  • URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net ] Here are some examples: CODESNIPPET_JAVA1 .. details
Summaries the opinions about net.sf.flexjson using topic modeling.
  • 0. hateoas objectfactory spring jersey rep layer introduce chubbsondubs typed process: 4
    • So the ObjectFactory layer is before we have a any strong typed object like Document.. details
    • Can anyone please help?Thank you After introducing ObjectFactory as suggested by chubbsondubs: CODESNIPPET .. details
    • I've only used flexjson, but the other 2 have very good reps. For HATEOAS, there is spring-hateoas (on github) or Jersey.. details
    • JSONLib is awesome as a core JSON library when you just want to process all elements of a JSON.. details
  • 1. option answer gson deepserialize graph send directional relationship entire change: 21
    • Thanks, but at the time the map sorting is already changed.. details
    • That looks interesting.. details
    • I hope this will help someone out there.. details
    • The value object has HashMap type and it prints: CODESNIPPET .. details
    • +1 looks good!. details
    • Thanks!.. details
    • Something like: CODESNIPPET .. details
    • But I think that way is not really nice to go, as the library can be pretty deep.. details
    • As you can see I am trying now with Transformer classes but I haven't succeeded.. details
    • Thank you for any help!. details
    • So I'm getting an object back from a server that looks like this: CODESNIPPET .. details
    • Your best option is Flexjson.. details
    • Thanks!. details
    • I would appreciate any help!. details
    • Please help me if someone knows about this CODESNIPPET .. details
    • Thanks!.. details
    • I've used JSONLib , FlexJSON and Gson all with great success.. details
    • I like FlexJSON as well and even modified it to be compatible with Microsoft's JSON serializer really easily.. details
    • Formatting dates on the server side is often handy too CODESNIPPET .. details
    • It has some cool features such as deepSerialize to send the entire graph and it doesn't break with bi directional relationships.. details
    • FlexJSON looks like the best Java->JSON serialization option I've seen.. details
  • 2. deserialize simple answer question serialize result functionality follow speak require: 11
    • Then it uses a series of ObjectFactory to map those simple objects into the actual objects you are mapping into.. details
    • Thanks for your answer!. details
    • I would like to serialize class Foo (that can be persisted) into JSON using flexjson (if you know some other library that support required functionality please speak up).. details
    • That's precisely how flexjson works, and you have a lot of flexibility to define at each point how to deserialize it.. details
    • However, when I get this object back, I want to deserialize it to a java class that looks like this: CODESNIPPET .. details
    • Since this is a highly voted java+json question, might be nice to summarize answers; especially since this is a rather old question, and many new options have become available (Spring MVC, Jersey/RESTeasy/CXF/Restlet; Gson/Jackson/FlexJSON).. details
    • I'm recommend you to use flexjson library IMHO, it more simple and usable library.. details
    • It looks like the version of the flexjson package you supplied is not compatible with your android version.. details
    • Okay .. this works and when I call this webservice I get the following result: [[50.0830292,8.2387331],[50.0830292,8.2387331],[50.0752003,8.2397125]] In my Android Client I try to deserialize that List of Objects: CODESNIPPET .. details
    • I am trying to deserialize this JSON like this: CODESNIPPET .. details
    • Hi, thanks for your answer.. details
  • 3. spring jackson deliver mvc null gson transformer find play doc: 8
    • / feels like a good alternative.. details
    • If you're not married to Jackson, I believe something similar to this can be accomplished using FlexJSON.. details
    • Good news is there is a work around**.. details
    • The json is fetched from a web service I have no influence on and looks something like this: CODESNIPPET .. details
    • Note that the reference returned in p is same as charlieClone just with updated values.. details
    • Adding the Transformer by Path (vs by Class) is not supported as FlexJSON forces TypeTransformer for null values : JSONContext.java : line 95 : CODESNIPPET .. details
    • Since, as I already mentioned, an Item object may contain many null-value fields, the outcoming JSON is longer than effectively needed.. details
    • Thanks, right now I saw 4 solutions - spring-json, jackson (delivered with Spring-MVC), FlexJson (delivered with SpringRoo) and gson... After few hours of play with first 3 of them i found that FlexJSON is fastest in setting up, spring-json has best docs and Spring-mvc jackson has working samples on spring svn.. details
  • 4. html summary gson case transformer functionality start factory find didnt: 7
    • Yep I've been much happier with FlexJSON than GSON in Play too.. details
    • Also, any suggestions on how this could be accomplished using any other library (like gson, flexjson, etc) is also interesting.. details
    • So the json in that case looks like this: CODESNIPPET .. details
    • I used FlexJson and it was very easy to start with and then with different use cases coming many functionalities of the library like summary.html [Transformer] and summary.html [Factories] have been a great help.. details
    • hey hi i didnt find in it can you give me link.. details
    • Try the GSon from google and and FlexJson Both are recommended .. details
    • We have been using Flexjson for converting Java objects to JSON and have found it very easy to use.. details
  • 5. jackson null aim functionality highly configurable pojos edit developer stream: 5
    • So each vendor, catalog, document is represented by a JSONObject and all child catalogues and documents are within a JSONArray.So far everything works fine with Flexjson and the following deserialization code: CODESNIPPET .. details
    • Please share which one did you like and why.. details
    • If I get a response back with 'null' as the Data attribute, everything works just fine (since you can assign null to a String).. details
    • Thank you for the suggestion, but I would like to avoid using a serializer at all costs if I can.. details
    • Here are more good choices: Jackson -- powerful data binding (JSON to/from POJOs), streaming (ultra fast), tree model (convenient for untyped access) Flex-JSON -- highly configurable serialization EDIT (Aug/2013): One more to consider: Genson -- functionality similar to Jackson, aimed to be easier to configure by developer .. details
  • 6. jackson lot codebase solution result values realize large expect include: 5
    • I tried this for Map, with and without include("values"), but the json result is the same; I was expecting to see class type data in the json for different Object type in the map when using "values"?. details
    • Thank you Eugene!. details
    • I realize there are other solutions out there, like Jackson, but this is part of a large codebase that already uses FlexJSON a lot.. details
    • I've tried: "user", "success.user", "values.success.user".. details
    • I am using FlexJson to support my entities with JSON.. details
  • 7. bean simple follow serialize attribute program write call transformer mechanism: 7
    • Reason being is because the values in your Map vary in type.. details
    • For example FlexJSON to customize serialization has a powerful mechanism called Transformers .. details
    • I hope you can provide some guidance here.. details
    • Help would be appreciated Greetings .. details
    • Flexjson works off Java Beans and PObject does not follow the Java Bean specification.. details
    • I am new to FlexJson and was following for simple tutorial.. details
    • I wrote a simple program but it seems not to be serializing the object attributes.. details
  • 8. thing bean advance serialize objectfactory simple transformer hibernate deepserialize load: 10
    • @SJuan76 well, yes and no.. details
    • Can you also please give a good link for Java Bean Specification.Thanks in advance.. details
    • So thank you very much for all the assistance @emt14.. details
    • Well from looking at the code, Flexjson is coded to handle this out of the box.. details
    • Anyway, the simplest thing I can think of is to install an _ObjectFactory_ on that list.. details
    • The application is a kind of library with several vendors that can have some catalogs with more catalogsand documents in them.. details
    • I am serializing a class like this into JSON using Flexjson: CODESNIPPET .. details
    • Thanks in advance!. details
    • There are also certain things that need to be changed but the FlexJSON transformer is perfect for those.. details
    • FlexJSON shines with its deepSerialize method that can properly handle serializing all get methods presented in a bean obtained from Hibernate (lazy loaded).. details
  • 9. jackson gson collection find simple provider speed someobject metric runtime: 7
    • Greeeaaaat.. details
    • I've seen some performance metrics on GSON - FlexJSON and Jackson Mapper are also easy to use APIs for converting POJO into JSON, and have better overall speed/performance than GSON.. details
    • So classes like standard collections there is no way Flexjson can infer the contained type from a Collection/Map class because those are simple Object references at runtime.. details
    • I second Jackson in favour of FlexJson; FlexJson lacks a default Jax-RS provider and doesn't correctly parse generics (like SomeObject).Also Jackson has very elegant configuration (once you find out how to plug it in!). details
    • FlexJson is also a good library similar to jackson that i have tried.. details
    • Right now my deserialization line of code looks like this: CODESNIPPET .. details
    • I want to go with Jackson because it is much faster than the alternatives, but I like FlexJSON the most.. details
  • 0. deserialize gson conform standard ensure bean directly multiple block serializer: 4
    • But now after looking at multiple examples I am at a loss, is it possible to deserialize directly into a list?. details
    • because of the JSON Serializer: .. details
    • You'll have to ensure your object conforms to the java bean standard, but it's really easy to use: Oh and its faster that GSON.. details
    • Here is a sample code block CODESNIPPET .. details
  • 1. setter getter answer update delete modify follow integer decimal double: 3
    • By default it uses double if its a decimal and long if its an integer.. details
    • @Nevzz03 you may use [link]( java lib to create you json object instead.. details
    • (Update from deleted answer):** I tried to modify the code using getter/setter methods, now it fails saying the following.. details
  • 2. tools function build exist copy doc find functionality deserializeinto admit: 6
    • I think the reason you are getting a List instead of List is a bug in Flexjson.. details
    • Here is an example copied from FlexJson-Doc The deserializeInto function takes your string and reference to existing object.. details
    • The deserialization doesn't give any errors, but the keys get converted to String.. details
    • I have not found an easy generic solution using annotations or built in functionality in the above libraries but I have probably overlooked them.. details
    • As of this writing, there are these 20: org.json org.json.me Jackson-JSON-Processor Json-lib JSON-Tools json-simple Stringtree SOJO Restlet Jettison json-taglib XStream JsonMarshaller Flexjson JON-tools google-gson Argo Pivot jsonij fastjson ...but of course the list can change.. details
    • But I admit that I haven't bothered to compare all the alternatives :-) .. details
  • 3. private constructor getter chubbsondubs setter affect accord suppose bottom scroll: 3
    • Hi,chubbsondubs,I had a similar problem.Does it affect if your getter and setters are private or your constructor is private?. details
    • Another library I used before discovering this tip was FlexJSON .. details
    • Flexjson 2.1 is supposed to work on Android according to-this (scroll to the bottom).. details
  • 4. jackson side integration outline post output blog understand write strength: 5
    • Does anyone have an idea what I'm doing wrong and how I can fix it?. details
    • You can also serialize the object using flexjson: .. details
    • Other than performance, there's this- blog-post] ("7 Jackson killer features") that outlines what Jackson has to offer on its own (not considering integration with frameworks) -- other libraries have their own strengths, and for flex-json I understand its output side (writing JSON) is quite flexible and powerful.. details
    • Jackson ( ) and Flex-JSON ( /) for example.. details
    • But know I have problems deserialize the data on the android side.. details
  • 5. catalog jackson strap gson jsonobjects simple documentor service jsonarrays single: 12
    • I'm unfamiliar with Jackson's methods for doing similar things, but I can say that FlexJSON is very performant, and in general intuitive to use during serialization/deserialziation steps.. details
    • Flexjson is great, even when dealing with nasty backend developers ;-).. details
    • Please note that this is just an example to explain the algorithm**, it doesn't perform any check**, it doesn't remove padding** and it's even terribly slow**.. details
    • That's a bug that should probably be fixed.. details
    • But unfortunately, the web service straps the JSONArrays to simple JSONObjects if a catalog contains only a single documentor a catalog contains just one catalog.. details
    • Using flexjson : CODESNIPPET .. details
    • .. details
    • I've looked into XStream, Eclipse MOXy, FlexJSON, JSON-lib & gson My goal is to get rid of my json wrapper classes and minimize code.. details
    • Yes check out .. details
    • I apologize if I am doing it wrong, I am new to this CODESNIPPET .. details
    • I've been meaning to try Flexjson .. details
    • Here are some examples: CODESNIPPET .. details
  • 6. case deserialize result wireless wifi require edge speed connection generate: 5
    • I think I made myself not clear, I always get a List but in case there is only one document I don't have Documents in the List but HashMaps, so List as catalog.document instead of List.. details
    • How to force FlexJson in java to deserialize a json object to a string?. details
    • This is in so far a problem, because I would like to send the generated JSON from a web server to a mobile client over a wireless connection via WiFi, 3G, EDGE or GPRS (i.e., more bandwidth is required, which results in less speed).. details
    • But when I try to deserialize the data, I get an exception that the json string has to start with "{".. details
    • What use cases are you worried about?. details
  • 7. bean implement introspector proxy property assume hibernate pull collection lot: 4
    • I think that's roughly what would fix that bug, but should also fix your problem.. details
    • I'm doing this a lot of time using hibernate and then converting the object of collections into json using flexjson .. details
    • Will give it a shot and report back.. details
    • Flex-JSON should work - it will use the bean property introspector to pull the object, and I assume the proxy class implements those properly.. details
Summaries of the opinions about net.sf.flexjson using three algorithms (Textrank, Lexrank and Luhn) adopted from extractive summarization. Each algorithm was used once for the positive opinions and once for the negative opinions.
  • The json is fetched from a web service I have no influence on and looks something like this: CODESNIPPET JAVA1 .
  • So the json in that case looks like this: CODESNIPPET JAVA3 .
  • I am serializing a class like this into JSON using Flexjson: CODESNIPPET JAVA1 .
  • I tried this for Map, with and without include("values"), but the json result is the same; I was expecting to see class type data in the json for different Object type in the map when using "values"?.
  • We have been using Flexjson for converting Java objects to JSON and have found it very easy to use .
  • FlexJson is also a good library similar to jackson that i have tried .
  • Can you also please give a good link for Java Bean Specification Thanks in advance .
  • So I'm getting an object back from a server that looks like this: CODESNIPPET JAVA1 .
  • However, when I get this object back, I want to deserialize it to a java class that looks like this: CODESNIPPET JAVA2 .
  • FlexJson is also a good library similar to jackson that i have tried .
  • I'm recommend you to use flexjson library IMHO, it more simple and usable library .
  • I used FlexJson and it was very easy to start with and then with different use cases coming many functionalities of the library like summary html Transformer and summary html Factories have been a great help .
  • I tried this for Map, with and without include("values"), but the json result is the same; I was expecting to see class type data in the json for different Object type in the map when using "values"?.
  • FlexJson is also a good library similar to jackson that i have tried .
  • JSONLib is awesome as a core JSON library when you just want to process all elements of a JSON .
  • Thank you for the suggestion, but I would like to avoid using a serializer at all costs if I can .
  • I'm recommend you to use flexjson library IMHO, it more simple and usable library .
  • I used FlexJson and it was very easy to start with and then with different use cases coming many functionalities of the library like summary html Transformer and summary html Factories have been a great help .
  • FlexJson is also a good library similar to jackson that i have tried .
  • Thank you for the suggestion, but I would like to avoid using a serializer at all costs if I can .
  • I used FlexJson and it was very easy to start with and then with different use cases coming many functionalities of the library like summary html Transformer and summary html Factories have been a great help .
  • Okay this works and when I call this webservice I get the following result: In my Android Client I try to deserialize that List of Objects: CODESNIPPET JAVA2 .
  • I tried this for Map, with and without include("values"), but the json result is the same; I was expecting to see class type data in the json for different Object type in the map when using "values"?.
  • We have been using Flexjson for converting Java objects to JSON and have found it very easy to use .
  • Thanks, right now I saw 4 solutions spring json, jackson (delivered with Spring MVC), FlexJson (delivered with SpringRoo) and gson After few hours of play with first 3 of them i found that FlexJSON is fastest in setting up, spring json has best docs and Spring mvc jackson has working samples on spring svn .
  • JSONLib is awesome as a core JSON library when you just want to process all elements of a JSON .
  • However, when I get this object back, I want to deserialize it to a java class that looks like this: CODESNIPPET JAVA2 .
  • Thank you for the suggestion, but I would like to avoid using a serializer at all costs if I can .
  • I used FlexJson and it was very easy to start with and then with different use cases coming many functionalities of the library like summary html Transformer and summary html Factories have been a great help .
  • Thank you for the suggestion, but I would like to avoid using a serializer at all costs if I can .
  • I think the reason you are getting a List instead of List is a bug in Flexjson .
  • But know I have problems deserialize the data on the android side .
  • But when I try to deserialize the data, I get an exception that the json string has to start with "{" .
  • Using flexjson : CODESNIPPET JAVA1 .
  • You'll have to ensure your object conforms to the java bean standard, but it's really easy to use: Oh and its faster that GSON .
  • How to force FlexJson in java to deserialize a json object to a string?.
  • Using flexjson : CODESNIPPET JAVA1 .
  • Jackson ( ) and Flex JSON ( ) for example .
  • Flex JSON should work it will use the bean property introspector to pull the object, and I assume the proxy class implements those properly .
  • You'll have to ensure your object conforms to the java bean standard, but it's really easy to use: Oh and its faster that GSON .
  • I'm unfamiliar with Jackson's methods for doing similar things, but I can say that FlexJSON is very performant, and in general intuitive to use during serialization deserialziation steps .
  • As of this writing, there are these 20: org json org json me Jackson JSON Processor Json lib JSON Tools json simple Stringtree SOJO Restlet Jettison json taglib XStream JsonMarshaller Flexjson JON tools google gson Argo Pivot jsonij fastjson but of course the list can change .
  • Other than performance, there's this blog post ("7 Jackson killer features") that outlines what Jackson has to offer on its own (not considering integration with frameworks) other libraries have their own strengths, and for flex json I understand its output side (writing JSON) is quite flexible and powerful .
  • You'll have to ensure your object conforms to the java bean standard, but it's really easy to use: Oh and its faster that GSON .
  • I'm doing this a lot of time using hibernate and then converting the object of collections into json using flexjson .
  • I'm unfamiliar with Jackson's methods for doing similar things, but I can say that FlexJSON is very performant, and in general intuitive to use during serialization deserialziation steps .
  • As of this writing, there are these 20: org json org json me Jackson JSON Processor Json lib JSON Tools json simple Stringtree SOJO Restlet Jettison json taglib XStream JsonMarshaller Flexjson JON tools google gson Argo Pivot jsonij fastjson but of course the list can change .
  • Other than performance, there's this blog post ("7 Jackson killer features") that outlines what Jackson has to offer on its own (not considering integration with frameworks) other libraries have their own strengths, and for flex json I understand its output side (writing JSON) is quite flexible and powerful .
  • You'll have to ensure your object conforms to the java bean standard, but it's really easy to use: Oh and its faster that GSON .
  • I'm doing this a lot of time using hibernate and then converting the object of collections into json using flexjson .
  • I think I made myself not clear, I always get a List but in case there is only one document I don't have Documents in the List but HashMaps, so List as catalog document instead of List .
  • I'm unfamiliar with Jackson's methods for doing similar things, but I can say that FlexJSON is very performant, and in general intuitive to use during serialization deserialziation steps .
  • As of this writing, there are these 20: org json org json me Jackson JSON Processor Json lib JSON Tools json simple Stringtree SOJO Restlet Jettison json taglib XStream JsonMarshaller Flexjson JON tools google gson Argo Pivot jsonij fastjson but of course the list can change .
  • Other than performance, there's this blog post ("7 Jackson killer features") that outlines what Jackson has to offer on its own (not considering integration with frameworks) other libraries have their own strengths, and for flex json I understand its output side (writing JSON) is quite flexible and powerful .
  • Please note that this is just an example to explain the algorithm**, it doesn't perform any check**, it doesn't remove padding** and it's even terribly slow** .
  • You'll have to ensure your object conforms to the java bean standard, but it's really easy to use: Oh and its faster that GSON .
  • I'm unfamiliar with Jackson's methods for doing similar things, but I can say that FlexJSON is very performant, and in general intuitive to use during serialization deserialziation steps .
  • As of this writing, there are these 20: org json org json me Jackson JSON Processor Json lib JSON Tools json simple Stringtree SOJO Restlet Jettison json taglib XStream JsonMarshaller Flexjson JON tools google gson Argo Pivot jsonij fastjson but of course the list can change .
  • Other than performance, there's this blog post ("7 Jackson killer features") that outlines what Jackson has to offer on its own (not considering integration with frameworks) other libraries have their own strengths, and for flex json I understand its output side (writing JSON) is quite flexible and powerful .
  • You'll have to ensure your object conforms to the java bean standard, but it's really easy to use: Oh and its faster that GSON .
Summaries of the opinions about net.sf.flexjson using Opinosis, an abstractive summarizer of opinions..
  • i 'm recommend you to use flexjson library imho , it more simple and usable library .
  • jsonlib is a json library when you just want to process all elements of a json .
  • i 've used jsonlib , flexjson and gson all with great success .
  • the library like summary html transformer and summary html factories have been a great help .
  • note that the reference returned in p is same as charlieclone just with updated values .
  • flexjson and was following for simple tutorial .
  • flexjson is also a good library similar to jackson that i have tried .
  • formatting dates on the server side is often handy too codesnippet java3 and often handy too .
  • for example flexjson to customize serialization has a powerful mechanism called transformers .
  • so thank you very much for all the assistance @ emt14 .
  • flexjson jon tools google gson argo pivot jsonij fastjson but of course the list can change and the list can change .
  • this is just an example to explain the algorithm** , it does n't perform any check** .
  • flexjson is very performant , and in general intuitive to use during serialization deserialziation steps .
  • i apologize if i am doing it wrong , i am new to this codesnippet java3 .
  • standard , but it 's really easy to use :/: oh and its faster that gson .
  • jackson 's methods for doing similar things , i can say that flexjson is very performant .
  • n't perform any check** , it does n't remove padding** and it 's even terribly slow** .
  • i tried to the code using getter setter methods , now it fails saying the following .
  • lot of time using hibernate and then converting the object of collections into json using flexjson .
  • i admit that i have n't bothered to compare all the alternatives :/: )/) .
Summaries of the opinions about net.sf.flexjson using contrastive viewpoints. Each entry contains a pair of positive and negative sentences that are most likely discussing about similar API features.
    • That's precisely how flexjson works, and you have a lot of flexibility to define at each point how to deserialize it .
    • How to force FlexJson in java to deserialize a json object to a string?.
    • Please help me if someone knows about this CODESNIPPET JAVA1 .
    • I apologize if I am doing it wrong, I am new to this CODESNIPPET JAVA3 .
    • So I'm getting an object back from a server that looks like this: CODESNIPPET JAVA1 .
    • I apologize if I am doing it wrong, I am new to this CODESNIPPET JAVA3 .
    • I am using FlexJson to support my entities with JSON .
    • I think the reason you are getting a List instead of List is a bug in Flexjson .
    • Please help me if someone knows about this CODESNIPPET JAVA1 .
    • I apologize if I am doing it wrong, I am new to this CODESNIPPET JAVA3 .
    • I like FlexJSON as well and even modified it to be compatible with Microsoft's JSON serializer really easily .
    • I think the reason you are getting a List instead of List is a bug in Flexjson .
    • I am serializing a class like this into JSON using Flexjson: CODESNIPPET JAVA1 .
    • Using flexjson : CODESNIPPET JAVA1 .
    • Something like: CODESNIPPET JAVA1 .
    • I apologize if I am doing it wrong, I am new to this CODESNIPPET JAVA3 .
Summaries of opinions about based on specific API aspects, such as, performance, usability, etc. The 'Overview' page provides an overview of the aspects detected in the opinions. The 'Trend' page shows the distribution of polarity over time for each aspect. The 'Positive Opinions' page groups positive opinions by the detected aspects. The 'Contrastive By Aspect' page shows paris of contrastive opinions under each aspect (where found).
Features:
  • Greeeaaaat.
  • Flexjson is great, even when dealing with nasty backend developers ;-).
Portability:
  • N/A
  • But know I have problems deserialize the data on the android side.
Documentation:
  • N/A
  • Here is an example copied from URL_http://flexjson.sourceforge.net/#Deserialization [FlexJson-Doc] The deserializeInto function takes your string and reference to existing object.
Onlysentiment:
  • Thank you Eugene!
  • Another library I used before discovering this tip was URL_http://flexjson.sourceforge.net/ [FlexJSON] .
Performance:
  • I've seen some performance metrics on GSON - FlexJSON and Jackson Mapper are also easy to use APIs for converting POJO into JSON, and have better overall speed/performance than GSON.
  • By default it uses double if its a decimal and long if its an integer.
Bug:
  • N/A
  • I think the reason you are getting a List instead of List is a bug in Flexjson.
Usability:
  • I've seen some performance metrics on GSON - FlexJSON and Jackson Mapper are also easy to use APIs for converting POJO into JSON, and have better overall speed/performance than GSON.
  • URL_http://flexjson.sourceforge.net/javadoc/flexjson/JSONDeserializer.html [ URL_http://flexjson.sourceforge.net/javadoc/flexjson/JSONDeserializer.html ] I'm unfamiliar with Jackson's methods for doing similar things, but I can say that FlexJSON is very performant, and in general intuitive to use during serialization/deserialziation steps.
  • Onlysentiment: 23
    1. general: 23
      • That looks interesting.. details
      • Thank you Eugene!. details
      • URL_http://flexjson.sourceforge.net / feels like a good alternative.. details
      • I hope this will help someone out there.. details
      • Thanks for your answer!. details
      • So thank you very much for all the assistance @emt14.. details
      • So thank you very much for all the assistance @emt14.. details
      • Thanks!.. details
      • +1 looks good!. details
      • Thanks!.. details
      • +1 looks good!. details
      • Thank you for any help!. details
      • Your best option is Flexjson.. details
      • Thanks!. details
      • Thanks in advance!. details
      • I would appreciate any help!. details
      • I'm recommend you to use flexjson library URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] IMHO, it more simple and usable library.. details
      • I'm recommend you to use flexjson library URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] IMHO, it more simple and usable library.. details
      • Help would be appreciated Greetings .. details
      • I am new to FlexJson and was following URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] for simple tutorial.. details
      • I am new to FlexJson and was following URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] for simple tutorial.. details
      • Hi, thanks for your answer.. details
      • Thanks!.. details
  • Performance: 6
    1. general: 6
      • I've seen some performance metrics on GSON - FlexJSON and Jackson Mapper are also easy to use APIs for converting POJO into JSON, and have better overall speed/performance than GSON.. details
      • I want to go with Jackson because it is much faster than the alternatives, but I like FlexJSON the most.. details
      • Try the URL_http://code.google.com/p/google-gson/ [GSon] from google and and URL_http://flexjson.sourceforge.net/ [FlexJson] Both are recommended .. details
      • Try the URL_http://code.google.com/p/google-gson/ [GSon] from google and and URL_http://flexjson.sourceforge.net/ [FlexJson] Both are recommended .. details
      • I've used URL_http://json-lib.sourceforge.net/ [JSONLib] , URL_http://flexjson.sourceforge.net/ [FlexJSON] and URL_http://code.google.com/p/google-gson/ [Gson] all with great success.. details
      • I've used URL_http://json-lib.sourceforge.net/ [JSONLib] , URL_http://flexjson.sourceforge.net/ [FlexJSON] and URL_http://code.google.com/p/google-gson/ [Gson] all with great success.. details
  • Features: 26
    1. sorting: 1
      • Thanks, but at the time the map sorting is already changed.. details
    2. reference: 2
      • Note that the reference returned in p is same as charlieClone just with updated values.. details
      • Note that the reference returned in p is same as charlieClone just with updated values.. details
    3. deserialization: 1
      • Right now my deserialization line of code looks like this: CODESNIPPET_JAVA3 .. details
    4. object: 1
      • So I'm getting an object back from a server that looks like this: CODESNIPPET_JAVA1 .. details
    5. general: 13
      • Greeeaaaat.. details
      • Can anyone please help?Thank you After introducing ObjectFactory as suggested by chubbsondubs: CODESNIPPET_JAVA6 .. details
      • Can you also please give a good link for Java Bean Specification.Thanks in advance.. details
      • I've tried: "user", "success.user", "values.success.user".. details
      • Anyway, the simplest thing I can think of is to install an _ObjectFactory_ on that list.. details
      • Something like: CODESNIPPET_JAVA1 .. details
      • I hope you can provide some guidance here.. details
      • Please share which one did you like and why.. details
      • Please share which one did you like and why.. details
      • hey hi i didnt find in it can you give me link.. details
      • hey hi i didnt find in it can you give me link.. details
      • Please help me if someone knows about this CODESNIPPET_JAVA1 .. details
      • Please help me if someone knows about this CODESNIPPET_JAVA1 .. details
    6. json: 2
      • So the json in that case looks like this: CODESNIPPET_JAVA3 .. details
      • I am trying to deserialize this JSON like this: CODESNIPPET_JAVA2 .. details
    7. formatting: 2
      • Formatting dates on the server side is often handy too CODESNIPPET_JAVA3 .. details
      • Formatting dates on the server side is often handy too CODESNIPPET_JAVA3 .. details
    8. serialization: 3
      • For example FlexJSON to customize serialization has a powerful mechanism called URL_http://flexjson.sourceforge.net/ [Transformers] .. details
      • For example FlexJSON to customize serialization has a powerful mechanism called URL_http://flexjson.sourceforge.net/ [Transformers] .. details
      • FlexJSON looks like the best Java->JSON serialization option I've seen.. details
    9. android: 1
      • It looks like the version of the flexjson package you supplied is not compatible with your android version.. details
  • Usability: 60
    1. transformer: 1
      • There are also certain things that need to be changed but the FlexJSON transformer is perfect for those.. details
    2. hibernate: 1
      • FlexJSON shines with its deepSerialize method that can properly handle serializing all get methods presented in a bean obtained from Hibernate (lazy loaded).. details
    3. jackson: 6
      • I've seen some performance metrics on GSON - FlexJSON and Jackson Mapper are also easy to use APIs for converting POJO into JSON, and have better overall speed/performance than GSON.. details
      • I second Jackson in favour of FlexJson; FlexJson lacks a default Jax-RS provider and doesn't correctly parse generics (like SomeObject).Also Jackson has very elegant configuration (once you find out how to plug it in!). details
      • URL_http://flexjson.sourceforge.net/ [FlexJson] is also a good library similar to jackson that i have tried.. details
      • URL_http://flexjson.sourceforge.net/ [FlexJson] is also a good library similar to jackson that i have tried.. details
      • Thanks, right now I saw 4 solutions - spring-json, jackson (delivered with Spring-MVC), FlexJson (delivered with SpringRoo) and gson... After few hours of play with first 3 of them i found that FlexJSON is fastest in setting up, spring-json has best docs and Spring-mvc jackson has working samples on spring svn.. details
      • I want to go with Jackson because it is much faster than the alternatives, but I like FlexJSON the most.. details
    4. hashmap: 1
      • The value object has HashMap type and it prints: CODESNIPPET_JAVA7 .. details
    5. deserialization: 1
      • So each vendor, catalog, document is represented by a JSONObject and all child catalogues and documents are within a JSONArray.So far everything works fine with Flexjson and the following deserialization code: CODESNIPPET_JAVA2 .. details
    6. graph: 1
      • It has some cool features such as deepSerialize to send the entire graph and it doesn't break with bi directional relationships.. details
    7. object: 4
      • So the ObjectFactory layer is before we have a any strong typed object like Document.. details
      • So classes like standard collections there is no way Flexjson can infer the contained type from a Collection/Map class because those are simple Object references at runtime.. details
      • However, when I get this object back, I want to deserialize it to a java class that looks like this: CODESNIPPET_JAVA2 .. details
      • I wrote a simple program but it seems not to be serializing the object attributes.. details
    8. mapping: 1
      • Then it uses a series of ObjectFactory to map those simple objects into the actual objects you are mapping into.. details
    9. general: 29
      • @SJuan76 well, yes and no.. details
      • @SJuan76 well, yes and no.. details
      • URL_http://flexjson.sourceforge.net / feels like a good alternative.. details
      • If you're not married to Jackson, I believe something similar to this can be accomplished using FlexJSON.. details
      • Also, any suggestions on how this could be accomplished using any other library (like gson, flexjson, etc) is also interesting.. details
      • Reason being is because the values in your Map vary in type.. details
      • I've only used flexjson, but the other 2 have very good reps. For HATEOAS, there is spring-hateoas (on github) or Jersey.. details
      • I realize there are other solutions out there, like Jackson, but this is part of a large codebase that already uses FlexJSON a lot.. details
      • Good news is there is a work around**.. details
      • Well from looking at the code, Flexjson is coded to handle this out of the box.. details
      • But I think that way is not really nice to go, as the library can be pretty deep.. details
      • The application is a kind of library with several vendors that can have some catalogs with more catalogsand documents in them.. details
      • I used URL_http://flexjson.sourceforge.net/ [FlexJson] and it was very easy to start with and then with different use cases coming many functionalities of the library like URL_http://flexjson.sourceforge.net/javadoc/flexjson/transformer/package- summary.html [Transformer] and URL_http://flexjson.sourceforge.net/javadoc/flexjson/factories/package- summary.html [Factories] have been a great help.. details
      • I used URL_http://flexjson.sourceforge.net/ [FlexJson] and it was very easy to start with and then with different use cases coming many functionalities of the library like URL_http://flexjson.sourceforge.net/javadoc/flexjson/transformer/package- summary.html [Transformer] and URL_http://flexjson.sourceforge.net/javadoc/flexjson/factories/package- summary.html [Factories] have been a great help.. details
      • As you can see I am trying now with CODETERM2 classes but I haven't succeeded.. details
      • That's precisely how flexjson works, and you have a lot of flexibility to define at each point how to deserialize it.. details
      • Your best option is Flexjson.. details
      • Thank you for the suggestion, but I would like to avoid using a serializer at all costs if I can.. details
      • Thank you for the suggestion, but I would like to avoid using a serializer at all costs if I can.. details
      • Since this is a highly voted java+json question, might be nice to summarize answers; especially since this is a rather old question, and many new options have become available (Spring MVC, Jersey/RESTeasy/CXF/Restlet; Gson/Jackson/FlexJSON).. details
      • I'm recommend you to use flexjson library URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] IMHO, it more simple and usable library.. details
      • I'm recommend you to use flexjson library URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] IMHO, it more simple and usable library.. details
      • Try the URL_http://code.google.com/p/google-gson/ [GSon] from google and and URL_http://flexjson.sourceforge.net/ [FlexJson] Both are recommended .. details
      • Try the URL_http://code.google.com/p/google-gson/ [GSon] from google and and URL_http://flexjson.sourceforge.net/ [FlexJson] Both are recommended .. details
      • Flexjson works off Java Beans and PObject does not follow the Java Bean specification.. details
      • I am new to FlexJson and was following URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] for simple tutorial.. details
      • I am new to FlexJson and was following URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] for simple tutorial.. details
      • I've used URL_http://json-lib.sourceforge.net/ [JSONLib] , URL_http://flexjson.sourceforge.net/ [FlexJSON] and URL_http://code.google.com/p/google-gson/ [Gson] all with great success.. details
      • I've used URL_http://json-lib.sourceforge.net/ [JSONLib] , URL_http://flexjson.sourceforge.net/ [FlexJSON] and URL_http://code.google.com/p/google-gson/ [Gson] all with great success.. details
    10. entities: 1
      • I am using FlexJson to support my entities with JSON.. details
    11. json: 9
      • I tried this for Map, with and without include("values"), but the json result is the same; I was expecting to see class type data in the json for different Object type in the map when using "values"?. details
      • I would like to serialize class Foo (that can be persisted) into JSON using flexjson (if you know some other library that support required functionality please speak up).. details
      • The json is fetched from a web service I have no influence on and looks something like this: CODESNIPPET_JAVA1 .. details
      • I am serializing a class like this into JSON using Flexjson: CODESNIPPET_JAVA1 .. details
      • Since, as I already mentioned, an Item object may contain many null-value fields, the outcoming JSON is longer than effectively needed.. details
      • JSONLib is awesome as a core JSON library when you just want to process all elements of a JSON.. details
      • JSONLib is awesome as a core JSON library when you just want to process all elements of a JSON.. details
      • I like FlexJSON as well and even modified it to be compatible with Microsoft's JSON serializer really easily.. details
      • We have been using Flexjson for converting Java objects to JSON and have found it very easy to use.. details
    12. serialization: 1
      • Here are more good choices: URL_http://wiki.fasterxml.com/JacksonHome [Jackson] -- powerful data binding (JSON to/from POJOs), streaming (ultra fast), tree model (convenient for untyped access) URL_http://flexjson.sourceforge.net/ [Flex-JSON] -- highly configurable serialization EDIT (Aug/2013): One more to consider: URL_http://code.google.com/p/genson/ [Genson] -- functionality similar to Jackson, aimed to be easier to configure by developer .. details
    13. android: 1
      • Okay .. this works and when I call this webservice I get the following result: [[50.0830292,8.2387331],[50.0830292,8.2387331],[50.0752003,8.2397125]] In my Android Client I try to deserialize that List of Objects: CODESNIPPET_JAVA2 .. details
    14. null: 2
      • Adding the Transformer by Path (vs by Class) is not supported as FlexJSON forces TypeTransformer for null values : JSONContext.java : line 95 : CODESNIPPET_JAVA3 .. details
      • If I get a response back with 'null' as the Data attribute, everything works just fine (since you can assign null to a String).. details
    15. gson: 1
      • Yep I've been much happier with FlexJSON than GSON in Play too.. details
  • Features: 7
    1. general: 7
      • Flexjson is great, even when dealing with nasty backend developers ;-).. details
      • Does anyone have an idea what I'm doing wrong and how I can fix it?. details
      • But now after looking at multiple examples I am at a loss, is it possible to deserialize directly into a list?. details
      • because of the JSON Serializer: URL_http://flexjson.sourceforge.net/javadoc/flexjson/JSONSerializer.html .. details
      • Here is a sample code block CODESNIPPET_JAVA1 .. details
      • Jackson ( URL_http://wiki.fasterxml.com/JacksonHome ) and Flex-JSON ( URL_http://flexjson.sourceforge.net /) for example.. details
      • Will give it a shot and report back.. details
  • Portability: 1
    1. general: 1
      • But know I have problems deserialize the data on the android side.. details
  • Documentation: 4
    1. general: 4
      • Here is an example copied from URL_http://flexjson.sourceforge.net/#Deserialization [FlexJson-Doc] The deserializeInto function takes your string and reference to existing object.. details
      • Here is an example copied from URL_http://flexjson.sourceforge.net/#Deserialization [FlexJson-Doc] The deserializeInto function takes your string and reference to existing object.. details
      • URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net ] Here are some examples: CODESNIPPET_JAVA1 .. details
      • URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net ] Here are some examples: CODESNIPPET_JAVA1 .. details
  • Onlysentiment: 13
    1. general: 13
      • Another library I used before discovering this tip was URL_http://flexjson.sourceforge.net/ [FlexJSON] .. details
      • Another library I used before discovering this tip was URL_http://flexjson.sourceforge.net/ [FlexJSON] .. details
      • Using URL_http://flexjson.sourceforge.net/ [flexjson] : CODESNIPPET_JAVA1 .. details
      • Using URL_http://flexjson.sourceforge.net/ [flexjson] : CODESNIPPET_JAVA1 .. details
      • URL_http://flexjson.sourceforge.net [ URL_http://flexjson.sourceforge.net ] .. details
      • URL_http://flexjson.sourceforge.net [ URL_http://flexjson.sourceforge.net ] .. details
      • Yes check out URL_http://flexjson.sourceforge.net [ URL_http://flexjson.sourceforge.net ] .. details
      • I apologize if I am doing it wrong, I am new to this CODESNIPPET_JAVA3 .. details
      • I apologize if I am doing it wrong, I am new to this CODESNIPPET_JAVA3 .. details
      • I've been meaning to try URL_http://flexjson.sourceforge.net/ [Flexjson] .. details
      • I've been meaning to try URL_http://flexjson.sourceforge.net/ [Flexjson] .. details
      • URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net ] Here are some examples: CODESNIPPET_JAVA1 .. details
      • URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net ] Here are some examples: CODESNIPPET_JAVA1 .. details
  • Performance: 3
    1. general: 3
      • By default it uses double if its a decimal and long if its an integer.. details
      • Other than performance, there's URL_http://www.cowtowncoder.com/blog/archives/2010/11/entry_434.html [this- blog-post] ("7 Jackson killer features") that outlines what Jackson has to offer on its own (not considering integration with frameworks) -- other libraries have their own strengths, and for URL_http://flexjson.sourceforge.net/ [flex-json] I understand its output side (writing JSON) is quite flexible and powerful.. details
      • Other than performance, there's URL_http://www.cowtowncoder.com/blog/archives/2010/11/entry_434.html [this- blog-post] ("7 Jackson killer features") that outlines what Jackson has to offer on its own (not considering integration with frameworks) -- other libraries have their own strengths, and for URL_http://flexjson.sourceforge.net/ [flex-json] I understand its output side (writing JSON) is quite flexible and powerful.. details
  • Bug: 5
    1. general: 5
      • I think the reason you are getting a List instead of List is a bug in Flexjson.. details
      • That's a bug that should probably be fixed.. details
      • I think that's roughly what would fix that bug, but should also fix your problem.. details
      • But know I have problems deserialize the data on the android side.. details
      • But when I try to deserialize the data, I get an exception that the json string has to start with "{".. details
  • Usability: 39
    1. compare: 2
      • But I admit that I haven't bothered to compare all the alternatives :-) .. details
      • But I admit that I haven't bothered to compare all the alternatives :-) .. details
    2. jackson: 2
      • Other than performance, there's URL_http://www.cowtowncoder.com/blog/archives/2010/11/entry_434.html [this- blog-post] ("7 Jackson killer features") that outlines what Jackson has to offer on its own (not considering integration with frameworks) -- other libraries have their own strengths, and for URL_http://flexjson.sourceforge.net/ [flex-json] I understand its output side (writing JSON) is quite flexible and powerful.. details
      • Other than performance, there's URL_http://www.cowtowncoder.com/blog/archives/2010/11/entry_434.html [this- blog-post] ("7 Jackson killer features") that outlines what Jackson has to offer on its own (not considering integration with frameworks) -- other libraries have their own strengths, and for URL_http://flexjson.sourceforge.net/ [flex-json] I understand its output side (writing JSON) is quite flexible and powerful.. details
    3. service: 1
      • But unfortunately, the web service straps the JSONArrays to simple JSONObjects if a catalog contains only a single documentor a catalog contains just one catalog.. details
    4. deserialization: 1
      • The deserialization doesn't give any errors, but the keys get converted to String.. details
    5. double: 1
      • By default it uses double if its a decimal and long if its an integer.. details
    6. class: 1
      • URL_http://flexjson.sourceforge.net/ [Flex-JSON] should work - it will use the bean property introspector to pull the object, and I assume the proxy class implements those properly.. details
    7. object: 4
      • You'll have to ensure your object conforms to the java bean standard, but it's really easy to use: URL_http://flexjson.sourceforge.net [ URL_http://flexjson.sourceforge.net ] Oh and its faster that GSON.. details
      • You'll have to ensure your object conforms to the java bean standard, but it's really easy to use: URL_http://flexjson.sourceforge.net [ URL_http://flexjson.sourceforge.net ] Oh and its faster that GSON.. details
      • You can also serialize the object using flexjson: URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] .. details
      • You can also serialize the object using flexjson: URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] .. details
    8. list: 4
      • I think the reason you are getting a List instead of List is a bug in Flexjson.. details
      • I think I made myself not clear, I always get a List but in case there is only one document I don't have Documents in the List but HashMaps, so List as catalog.document instead of List.. details
      • As of this writing, there are these 20: URL_http://www.JSON.org/java/index.html [org.json] URL_https://github.com/upictec/org.json.me/ [org.json.me] URL_http://jackson.codehaus.org/ [Jackson-JSON-Processor] URL_http://json-lib.sourceforge.net/ [Json-lib] URL_http://developer.berlios.de/projects/jsontools/ [JSON-Tools] URL_http://code.google.com/p/json-simple/ [json-simple] URL_http://www.stringtree.org/stringtree-json.html [Stringtree] URL_http://sojo.sourceforge.net/ [SOJO] URL_http://www.restlet.org/ [Restlet] URL_http://jettison.codehaus.org/ [Jettison] URL_http://json-taglib.sourceforge.net/ [json-taglib] URL_http://xstream.codehaus.org/ [XStream] URL_http://code.google.com/p/jsonmarshaller/ [JsonMarshaller] URL_http://flexjson.sourceforge.net/ [Flexjson] URL_http://sourceforge.net/projects/jontools/ [JON-tools] URL_http://code.google.com/p/google-gson/ [google-gson] URL_http://argo.sourceforge.net/ [Argo] URL_http://pivot.apache.org/ [Pivot] URL_http://jwm.slavitica.net/p/projects/jsonij [jsonij] URL_http://sourceforge.net/projects/fastjson/ [fastjson] ...but of course the list can change.. details
      • As of this writing, there are these 20: URL_http://www.JSON.org/java/index.html [org.json] URL_https://github.com/upictec/org.json.me/ [org.json.me] URL_http://jackson.codehaus.org/ [Jackson-JSON-Processor] URL_http://json-lib.sourceforge.net/ [Json-lib] URL_http://developer.berlios.de/projects/jsontools/ [JSON-Tools] URL_http://code.google.com/p/json-simple/ [json-simple] URL_http://www.stringtree.org/stringtree-json.html [Stringtree] URL_http://sojo.sourceforge.net/ [SOJO] URL_http://www.restlet.org/ [Restlet] URL_http://jettison.codehaus.org/ [Jettison] URL_http://json-taglib.sourceforge.net/ [json-taglib] URL_http://xstream.codehaus.org/ [XStream] URL_http://code.google.com/p/jsonmarshaller/ [JsonMarshaller] URL_http://flexjson.sourceforge.net/ [Flexjson] URL_http://sourceforge.net/projects/jontools/ [JON-tools] URL_http://code.google.com/p/google-gson/ [google-gson] URL_http://argo.sourceforge.net/ [Argo] URL_http://pivot.apache.org/ [Pivot] URL_http://jwm.slavitica.net/p/projects/jsonij [jsonij] URL_http://sourceforge.net/projects/fastjson/ [fastjson] ...but of course the list can change.. details
    9. general: 12
      • URL_http://flexjson.sourceforge.net/javadoc/flexjson/JSONDeserializer.html [ URL_http://flexjson.sourceforge.net/javadoc/flexjson/JSONDeserializer.html ] I'm unfamiliar with Jackson's methods for doing similar things, but I can say that FlexJSON is very performant, and in general intuitive to use during serialization/deserialziation steps.. details
      • URL_http://flexjson.sourceforge.net/javadoc/flexjson/JSONDeserializer.html [ URL_http://flexjson.sourceforge.net/javadoc/flexjson/JSONDeserializer.html ] I'm unfamiliar with Jackson's methods for doing similar things, but I can say that FlexJSON is very performant, and in general intuitive to use during serialization/deserialziation steps.. details
      • Please note that this is just an example to explain the algorithm**, it doesn't perform any check**, it doesn't remove padding** and it's even terribly slow**.. details
      • Please note that this is just an example to explain the algorithm**, it doesn't perform any check**, it doesn't remove padding** and it's even terribly slow**.. details
      • Another library I used before discovering this tip was URL_http://flexjson.sourceforge.net/ [FlexJSON] .. details
      • Another library I used before discovering this tip was URL_http://flexjson.sourceforge.net/ [FlexJSON] .. details
      • I think that's roughly what would fix that bug, but should also fix your problem.. details
      • Using URL_http://flexjson.sourceforge.net/ [flexjson] : CODESNIPPET_JAVA1 .. details
      • Using URL_http://flexjson.sourceforge.net/ [flexjson] : CODESNIPPET_JAVA1 .. details
      • (Update from deleted answer):** I tried to modify the code using getter/setter methods, now it fails saying the following.. details
      • (Update from deleted answer):** I tried to modify the code using getter/setter methods, now it fails saying the following.. details
      • What use cases are you worried about?. details
    10. json: 7
      • @Nevzz03 you may use [link]( URL_http://flexjson.sourceforge.net/)flexjson java lib to create you json object instead.. details
      • I'm doing this a lot of time using hibernate and then converting the object of collections into json using URL_http://flexjson.sourceforge.net/ [flexjson] .. details
      • I'm doing this a lot of time using hibernate and then converting the object of collections into json using URL_http://flexjson.sourceforge.net/ [flexjson] .. details
      • How to force FlexJson in java to deserialize a json object to a string?. details
      • This is in so far a problem, because I would like to send the generated JSON from a web server to a mobile client over a wireless connection via WiFi, 3G, EDGE or GPRS (i.e., more bandwidth is required, which results in less speed).. details
      • I've looked into XStream, Eclipse MOXy, FlexJSON, JSON-lib & gson My goal is to get rid of my json wrapper classes and minimize code.. details
      • But when I try to deserialize the data, I get an exception that the json string has to start with "{".. details
    11. constructor: 1
      • Hi,chubbsondubs,I had a similar problem.Does it affect if your getter and setters are private or your constructor is private?. details
    12. android: 2
      • Flexjson 2.1 is supposed to work on Android according URL_http://flexjson.sourceforge.net/ [to-this] (scroll to the bottom).. details
      • Flexjson 2.1 is supposed to work on Android according URL_http://flexjson.sourceforge.net/ [to-this] (scroll to the bottom).. details
    13. annotations: 1
      • I have not found an easy generic solution using annotations or built in functionality in the above libraries but I have probably overlooked them.. details
  • OnlySentiment
    1. I'm recommend you to use flexjson library URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] IMHO, it more simple and usable library.
      • I've been meaning to try URL_http://flexjson.sourceforge.net/ [Flexjson] .
  • Usability
    1. @Nevzz03 you may use [link]( URL_http://flexjson.sourceforge.net/)flexjson java lib to create you json object instead.
      • I am new to FlexJson and was following URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] for simple tutorial.
    2. URL_http://flexjson.sourceforge.net/ [FlexJson] is also a good library similar to jackson that i have tried.
      • You can also serialize the object using flexjson: URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] .
    3. You can also serialize the object using flexjson: URL_http://flexjson.sourceforge.net/ [ URL_http://flexjson.sourceforge.net/ ] .
      • Try the URL_http://code.google.com/p/google-gson/ [GSon] from google and and URL_http://flexjson.sourceforge.net/ [FlexJson] Both are recommended .