1. javax.jms
  2. zookeeper
    • I am getting the data from the Zookeeper node like this CODESNIPPET_JAVA1 .
    • Now I want to append one more key value pair at the end to the above JSON String.
    • This is the below key value pair I want to append - CODESNIPPET_JAVA3 .
    • Explore all reviews
  3. javax.portlet
    • Now, I want to create Web Service using RESTful API in portlet environment.Please guide me How can i write the Web Service which will return JSON or XML data.
    • Controller @Controllerpublic class WebServiceTest { @RequestMapping(value "/myWebService/testing", method RequestMethod.GET) public String testMethod() { return "HELLO WORLD !
    • SUCCESS"; } } I am trying to Hit with localhost:8080:/myappname/myWebService/testing Getting no result.
    • hi, could you please paste the handler methods ?
    • Explore all reviews
  4. javax.ws.rs.core
    • When I try to output the variable that I just sent with GET, the WS gives back a NULL.In addition , Glassfish server console outputs this : INFO: Couldn't find JAX-B element for class java.lang.String INFO: Couldn't find JAX-B element for class java.lang.String .... INFO: Couldn't find JAX-B element for class java.lang.String INFO: Couldn't find JAX-B element for class javax.ws.rs.core.Response INFO: Couldn't find JAX-B element for class java.lang.String !
    • My servlet initialization class is like this: import java.util.HashSet;import java.util.Set;import javax.ws.rs.core.Application; public class AddressBookApplication extends Application { CODESNIPPET_JAVA3 . }
    • Explore all reviews
  5. jsonmarshaller
  6. portlets
  7. stax
    • Correct, I should have mentioned that one too.
    • Thanks for the answer and the extra effort!.
    • I've created a self-contained Maven project demonstrating this URL_https://github.com/zzantozz/testbed/tree/master/stackoverflow/8367671 -convert-xml-stream-to-json-stream [on-Github] .
    • Explore all reviews
  8. spring-social
    • Please help me converting json to java objects.
    • Hope my question is clear.
    • After a quick comparison, I found: Resting v0.7: resting-0.7-dev-release-android.jar - 1.3MB (all-in-one according tothe doc) Restlet v2.1.2: org.restlet.jar - 728KB (however must 1MB after adding httpclient extention and json extention) Spring for Android** v1.0.1: spring-android-core-1.0.1.RELEASE.jar 113KB + spring-android-rest-template-1.0.1.RELEASE.jar 186KB + gson-2.2.3.jar 194KB 493KB (without auth support, otherwise spring social will be a dependency) Please correct me if any miss.
    • Explore all reviews
  9. partext
    • I get data like this (just a matrix of list) Toyota, Gas, Compact, Corolla Toyota, Gas, Compact, Camry Toyota, Hybrid, Compact, Prius Honda, Gas, Compact, Civic If needed I can REFORMAT THE DATA into two tables parentId parText answerId 1 Toyota 1 1 Toyota 2 1 Toyota 3 2 Honda 4 answerId level answerTextid answerText 1 1 1 Gas 1 2 2 Compact 1 3 3 Corolla 2 1 1 Gas 2 2 2 Compact 2 3 4 Camry Then I need to make it a tree(nested output like the JSON shows with parent/children - just like if you were creatign a file system directory) one other thign i would like to do is for each car have mileage as a varialbe ({answerid3:4, text=Corolla, mileage=38}.
    • Explore all reviews
  10. com.eclipsesource.minimal-json
    • "first_aired_iso" would be an entry in each map of the array, with a String for a value.
    • Here is the URL which calls the API CODETERM1 And here is the corresponding JSON response !
    • For reference, please check URL_http://eclipsesource.com/blogs/2013/04/18 /minimal-json-parser-for-java/ [ URL_http://eclipsesource.com/blogs/2013/04/18 /minimal-json-parser-for-java/] .
    • Explore all reviews
  11. jenkins
    • I assume you want to do this as part of Jenkins build process, please explain how exactly...
    • Explore all reviews
  12. apache-io
    • Here's an example, which utilizes the excellent URL_http://commons.apache.org/proper/commons-io/ [Apache- Commons-IO-library] , for convenience: CODESNIPPET_JAVA1 .
    • Explore all reviews
  13. org.kohsuke.droovy
    • consider groovy: URL_http://groovy.codehaus.org/gapi/groovy/json/JsonBuilder.html [ URL_http://groovy.codehaus.org/gapi/groovy/json/JsonBuilder.html ] (won't help you on the client side though) .
    • For what it's worth, that's exactly how URL_http://groovy.codehaus.org [Groovy] handles JSON objects.
    • Explore all reviews
  14. javax.json
    • Thanks for the answer, I added to my question to address your comments.
    • Nashorn will treat objects of such classes just like nashorn script objects.
    • Usual nashorn operations like obj[i], obj.foo, obj.func(), delete obj.foo will be glued to appropriate method call of this class.
    • Since both are obviously geared towards JSON, is there any planned interoperability between them (ie.
    • Explore all reviews
  15. org.apache.xmlrpc
  16. org.codehaus.stomp
    • My message creation code looks like this: CODESNIPPET_JAVA1 .
    • When I retrieve them in PHP, the array that's created looks like this: CODESNIPPET_JAVA2 .
    • Explore all reviews
  17. genson
    • Ok fair enough!
    • Took 2 mins to get it working and it does what I need!.
    • Hmmm, Genson looks pretty handy.
    • Ah yes, pretty key that!.
    • Please show how you reload.
    • I hope however that you will also try Genson...
    • Explore all reviews
  18. jax-ws
    • Could you please say, may be you know the way to realize SOAP + EJB + JSON?
    • Hi, thanks to advance.
    • I have good experience with Jersey, which is the reference implementation of jax-ws.
    • Explore all reviews
  19. javax.activity
    • (where jsonArray is the JSONArray and parseJson is the method in the java activity) the string that it sends looks something like this: CODESNIPPET_JAVA2 .
    • Explore all reviews
  20. net.sf.sojo
  21. com.liferay.portal
    • There is no clear way to find Assets with certain Tags on them through the JSONWS.
    • Explore all reviews
  22. jdbc
  23. ma.glasnost.orika
  24. jax-ws-commons
    • specially if we want to convert an existing jaxb(SOAP) service to JSON by changing the endpoint only?
    • Explore all reviews
  25. org.apache.tomcat
    • Please first read some tutorials of Apache tomcat and java server technologies like servlet, jsp's ans web services.
    • Explore all reviews
  26. sjsxp
  27. uk.ac.gate
    • Please check URL_https://sites.google.com/site/javacornproject/corn-gate [ URL_https://sites.google.com/site/javacornproject/corn-gate ] project page to get detailed information.
    • Explore all reviews
  28. google-api-translate-java
    • Even if I append this JVM parameter -Dfile.encoding=UTF-8, without the platform encoding I didn't succeed in properly encoded streams.
    • Explore all reviews
  29. freebase-java-api
  30. org.apache.pivot
  31. com.sun.grizzly
  32. java.lang.reflect
    • Smart guy, voyager, you've just copied in the standard Java JSON classes' documentation.
    • Explore all reviews
  33. tapestry
    • Good question, I'm using the Tapestry5 framework which comes bundled with Tapestry JSON.
    • Explore all reviews
  34. com.sdicons.jsontools
  35. jxls
    • See URL_http://jxls.sourceforge.net/reference/collections.html [ URL_http://jxls.sourceforge.net/reference/collections.html ] If the problem is the json can't be read in the jxls excel property, just serialize it into collection of java bean first.
    • Explore all reviews
  36. spring-data-rest
  37. org.jvnet.jax-ws-commons
    • Could you please say, may be you know the way to realize SOAP + EJB + JSON?
    • Hi, thanks to advance.
    • Explore all reviews
  38. de.l3s.boilerpipe
  39. caliper
    • Essentially, I'm interested in all complete CODETERM6 sections inside the wrapper CODETERM7 .
    • Explore all reviews
  40. apache-commons-jxpath
  41. json-smart
    • Here are some: URL_https://code.google.com/p/json-smart/wiki/Benchmark [Click] .
    • What about URL_http://code.google.com/p/json-smart/ [ URL_http://code.google.com/p /json-smart/] ?
    • Explore all reviews
  42. morphia
    • I want to log incoming HTTP request data for a survey application and later planning to analyze the data by performing various kind of "rule matching" on that request data.
    • I want to basically store those headers in a meaningful way.
    • There are some standard headers with specific values, and there are some custom headers with custom values.
    • I want to treat standard headers like Referer,Cookie,URL etc as first class citizens for query the data later.
    • Explore all reviews
  43. net.sf.corn
    • Please check URL_https://sites.google.com/site/javacornproject/corn-gate [ URL_https://sites.google.com/site/javacornproject/corn-gate ] project page to get detailed information.
    • Explore all reviews
  44. woodstox
  45. com.facebook.api
  46. xmlrpc
    • Ok.. here's the green tick!.
    • Can someone please point me to a reference which gives a "full circle" example implementation of either (both with android client and java appengine back end) xmlrpc or json / rest ?
    • Any they'd get a credit in the software I'm putting together for this (for what it's worth).
    • this is not a SO question, this is a consulting job!.
    • Explore all reviews
  47. org.codehaus.woodstox
  48. com.twilio
    • screenshot showing json added!
    • [enter image description here]( URL_http://i.stack.imgur.com/NyDxq.jpg)**Update this is the new screesnshot**!
    • Explore all reviews
  49. hsqldb
    • The "dataSource" bean properties should be updated like so: CODESNIPPET_JAVA8 .
    • Explore all reviews
  50. json-taglib
    • The interpretation of this is, you have an array named CODETERM5 , and in this array contains two objects, the first object has an attribute named CODETERM6 , with value CODETERM7 .
    • The second object has an attribute named CODETERM8 , with value CODETERM9 .
    • hey hi i didnt find in it can you give me link.
    • Explore all reviews
  51. hamcrest
    • You question is how to test the value in a excel file with hamcrest matcher ?
    • I have an array as follow: [[Disable,Enable,No,Yes][Joe,Bill,Doug,Kevin],[Red, Blue,Pink,Magenta],[One,Two,Three,Four]]; I need a hamcrest matcher that will match with an excel file that has name/value pair data in it.
    • Explore all reviews
  52. javax.xml.bind.annotation
  53. mockito
    • Please accept the answer if it helped you.
    • Please accept the answer if it helped you.
    • My helper methods for the test case looks like: CODESNIPPET_JAVA3 .
    • Enough of talking, let's see the code itself: CODESNIPPET_JAVA1 .
    • Are there any cleaner approach instead of this testcase.
    • The CODETERM1 helper class for the test looks like: CODESNIPPET_JAVA4 .
    • Explore all reviews
  54. proguard
    • Proguard is renaming multiple members to the same name 'a', which is perfectly valid in classfiles.
    • Explore all reviews
  55. org.gaelyk
    • The easiest process was to run the script above which downloaded the jars into the .groovy directory.
    • Explore all reviews
  56. org.jvnet.ws.wadl
    • Old question, but worth clarifying: The JSON Schema standard includes "hyper- schemas", which specify links/actions - including HTTP method, required data (specified as JSON Schema), and expected results.
    • Explore all reviews
  57. org.mediawiki
    • Edit: Here's what the relevant classes look like at the moment: CODESNIPPET_JAVA2 .
    • Explore all reviews
  58. kxml
    • will have a look at that :) as we will need a mobile version at some point too.
    • Explore all reviews
  59. jbox2d
    • Thanks, this may work... PbSerializer pbs new PbSerializer(); Builder obj pbs.serializeWorld(world); and then on the client if (next instanceof Builder) { this.world pbd.deserializeWorld((PbWorld)next);.
    • Explore all reviews
  60. com.google.gdata
    • I thought about two options (well, service is an overloaded term): everything that is mentioned in these JSON GWT tutorials is about the third-party services, like GData and Yahoo!
    • Explore all reviews
  61. jinahya
  62. alfresco
    • BUT In BIRT Report in eclipse IDE no luck 1, in Scripted Data Source I put: CODESNIPPET_JAVA3 .
    • Explore all reviews
  63. com.nebhale.jsonpath
    • This implementation of JsonPath for Java seems fine: URL_https://github.com/nebhale/JsonPath .
    • This implementation of JsonPath for Java seems fine: URL_https://github.com/nebhale/JsonPath .
    • Explore all reviews
  64. jmeter
    • CODETERM4 In the parameter values section in JMeter, I am passing something like this- CODESNIPPET_JAVA2 .
    • Explore all reviews
  65. jontools
  66. ireport
  67. ognl
    • then JSON string will look like CODESNIPPET_JAVA3 .
    • other something like this ?
    • Explore all reviews
  68. ph.samson
  69. org.glassfish.main.core
    • Therefore, I recommend that you follow a tutorial to deploy a Spring MVC app onto glassfish.
    • Something like a soap request?
    • Are the web-services being secured?
    • Do you think everything else seems fine, from the above code?
    • [Glassfish console]( URL_http://i.stack.imgur.com/jXZMn.png)!
    • When I try to output the variable that I just sent with GET, the WS gives back a NULL.In addition , Glassfish server console outputs this : INFO: Couldn't find JAX-B element for class java.lang.String INFO: Couldn't find JAX-B element for class java.lang.String .... INFO: Couldn't find JAX-B element for class java.lang.String INFO: Couldn't find JAX-B element for class javax.ws.rs.core.Response INFO: Couldn't find JAX-B element for class java.lang.String !
    • Explore all reviews
  70. jooq
  71. achartengine
    • I am working on an android app in which i send an http response to a server and get a response in string which is in JSON format, now on the basis of this response i need to generate a stacked column chart using AChartEngine for different equipments.
    • Explore all reviews
  72. org.apache.cxf
    • Please check the answer that I have provided.
    • thnx for the reply..
    • (There are a lot like Apache CXF, Spring MVC web services).
    • Go for it!
    • Need more information -- what kind of Java object do you want to operate on?
    • Explore all reviews
  73. parboiled
  74. net.sf.kxml
    • will have a look at that :) as we will need a mobile version at some point too.
    • Explore all reviews
  75. beanmapper
  76. javafx
  77. io.restx
  78. org.jibx
    • Or (perhaps the more fundamental question is) how do I support different versions of JSON bindings on the same set of Java classes?
    • Explore all reviews
  79. protobuf-java-format
    • Interestingly the class it says it can't find is different: CODESNIPPET_JAVA6 .
    • Explore all reviews
  80. net.sourceforge.argo
  81. org.eclipse.jetty
    • Server URL_http://www.eclipse.org/jetty/ [Jetty] or URL_http://tomcat.apache.org/ [Tomcat] supporting Servlet 3.0.
    • Explore all reviews
  82. dropwizard
    • The endpoint looks like this: CODESNIPPET_JAVA1 .
    • How could I accept the different JSON representations on the endpoint, while keeping the validation codein the Resource as concise as something like CODETERM1 ?
    • and I'd like the validation machinery look into the CODETERM2 attribute, create an instance of the appropriate subclass, here e.g.
    • Explore all reviews
  83. bson4jackson
    • plz check URL_https://github.com/mongodb/mongo-java-driver/downloads [mongo- java-driver] , i thank it should contain the same facilities also look at URL_https://github.com/michel-kraemer/bson4jackson [bson4jackson] .
    • Explore all reviews
  84. thrift-protobuf-compare
    • URL_http://code.google.com/p/thrift-protobuf-compare/wiki/Benchmarking [ URL_http://code.google.com/p/thrift-protobuf-compare/wiki/Benchmarking ] In this article I discuss the importance of re-cycling objects to improve serialisation times.
    • It looks 100x faster in Serialization/Deserialization URL_http://code.google.com/p/thrift-protobuf-compare/wiki/Benchmarking .
    • Explore all reviews
  85. com.octo.android.robospice
    • However I cannot return and array (I've tried with the CODETERM4 too) from CODETERM5 , what would be the best workaround here?
    • Explore all reviews
  86. jasperreports
    • When i debugged the codes, the _JsonDataSource_ contains values coming from the _JSON_ File.
    • Explore all reviews
  87. jcouchdb
  88. java.beans
    • Can you also please give a good link for Java Bean Specification.Thanks in advance.
    • Finally, I got it working with Java Beans.
    • (i.e., the Map in ServiceResponse would look like CODETERM1 ).
    • Does the class follow regular JavaBean conventions with getter / setters, default constructor etc.. JacksonJsonConverter works with Java Beans.
    • I have a Jersey client that is successfully calling a REST service and populating the associated Java Beans CODETERM1 based on this code: CODESNIPPET_JAVA1 .
    • The reading is jsut done with these two lines once the Example.class is correctly annotated : CODESNIPPET_JAVA1 .
    • Explore all reviews
  89. apache-wink
    • have u done apache wink service configuration.
    • Apache Wink Json REST Web Service.
    • How can I make Apache Wink to return something like CODESNIPPET_JAVA1 .
    • Explore all reviews
  90. net.logstash.logback
  91. io.netty
  92. org.simpleframework
    • The reading is jsut done with these two lines once the Example.class is correctly annotated : CODESNIPPET_JAVA1 .
    • Explore all reviews
  93. com.simplegeo
    • I'm working on a coffee shop finder android app that makes calls to the URL_http://simplegeo.com [SimpleGeo] API to get each place of interest.
    • Explore all reviews
  94. stringtree
  95. spring-framework-issues
    • Here is the link, please vote up : URL_https://jira.springsource.org/browse/SPR-7344 .
    • Explore all reviews
  96. org.springframework.build
  97. org.apache.activemq
    • When I retrieve them in PHP, the array that's created looks like this: CODESNIPPET_JAVA2 .
    • Explore all reviews
  98. voldemort
  99. castor
    • Or (perhaps the more fundamental question is) how do I support different versions of JSON bindings on the same set of Java classes?
    • Explore all reviews
  100. openjpa
    • You can try URL_http://openjpa.apache.org/jest.html [JEST] , it works over URL_http://openjpa.apache.org/ [OpenJPA] .
    • Explore all reviews
  101. javax.naming
    • Thanks @giampaolo finally I add a few line more to store information in ArrayList: //List of objects to persist List firstTranslationList new ArrayList(); List originalTermList new ArrayList(); List list new ArrayList(principalTranslation.values()); for (Item item : list) { firstTranslationList.add(item.FirstTranslation); originalTermList.add(item.OriginalTerm); } Thanks again :).
    • Glad you solved.
    • Explore all reviews
  102. com.google.code.guice
  103. org.apache.openejb.patch
    • You can try URL_http://openjpa.apache.org/jest.html [JEST] , it works over URL_http://openjpa.apache.org/ [OpenJPA] .
    • Explore all reviews
  104. jsonij
  105. javax.swing
    • I've had good experiences with this, as long as the same version of the code was running on both ends, on the same version of the JVM etc!.
    • Explore all reviews
  106. jersey
  107. xml-infoset
  108. javax.xml.stream
    • For example, it'll say something like "Now I'm looking at an open tag... now a close tag... now some chars... now a comment..." and unless you ask it for information about those elements it is hitting (get attributes, characters, etc.)
    • Explore all reviews
  109. java.lang
    • Hi!
    • It says:FATAL EXCEPTION: main: java.lang.RuntimeException: Failed to invoke protected java.lang.ClassLoader() with no args at com.google.gson.internal.ConstructorCo nstructor$2.construct(ConstructorConstructor.java:94) at com.google.gson.inter nal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactor y.java:162) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.re ad(ReflectiveTypeAdapterFactory.java:93).
    • (JSONObject.java:171) I update the printout of json string before send the request, please see..
    • I'm sorry, I missed the fact that the numbers are represented as Strings.
    • @helios Oh!
    • What is the value of entity.getContent()?
    • Explore all reviews
  110. com.pubnub
    • @PubNub, please cf.
    • Morevoer, note that there is a performance penalty in this code, which can be avoided by following the answer to the question URL_http://stackoverflow.com/questions/20534862/how-to-efficiently-map-a-org- json-jsonobject-to-a-pojo/20710876#20710876 [How-to-efficiently-map-a-org.json .JSONObject-to-a-POJO?]
    • Official Bitcoin Wiki JSON Streaming API We will be working from the Bitcoin wiki feed instructions provided by Bitcoin official Wiki: URL_https://en.bitcoin.it/wiki/MtGox/API/Pubnub [ URL_https://en.bitcoin.it/wiki/MtGox/API/Pubnub ] - continue reading below the screenshot to continue.
    • [PubNub Developer Console]( URL_http://i.stack.imgur.com/ZZWZw.png ) To see the live real-time data feed we will be using, please checkout the following two links: 1.
    • Official Bitcoin Wiki JSON Streaming API We will be working from the Bitcoin wiki feed instructions provided by Bitcoin official Wiki: URL_https://en.bitcoin.it/wiki/MtGox/API/Pubnub [ URL_https://en.bitcoin.it/wiki/MtGox/API/Pubnub ] - continue reading below the screenshot to continue.
    • [PubNub Developer Console]( URL_http://i.stack.imgur.com/ZZWZw.png ) To see the live real-time data feed we will be using, please checkout the following two links: 1.
    • Explore all reviews
  111. smartgwt
    • after site refresh the tree is displayed correctly: CODESNIPPET_JAVA3 .
    • after reparent b (drag b at folder c and drop it into c) all leafs gets folders: URL_http://i.stack.imgur.com/lLHdX.png [ URL_http://i.stack.imgur.com/lLHdX.png ] this is send to the server: CODESNIPPET_JAVA2 .
    • my code for the treegrid: public class FavoritesGrid extends TreeGrid { CODESNIPPET_JAVA4 .
    • the problem is when i try to reparent for example at begin the tree looks like: !
    • yes, SmartGWT expects a specific JSON format.
    • Also I hope that there is easier way than implement my own REST service.
    • Explore all reviews
  112. sax
    • Haha, so true.
    • If there is little translation then it may be extremely tiny.
    • I have 3 sections (named arrays) in some huge file.It successfully parses first (a tiny one, under 1000 bytes).
    • For one object in values I call nextObject.put.
    • Nothing special.
    • Thanks //edit Thanks for the responses so far :) The xml will be between 3/4 lines to about 50 max (at the extreme).. .
    • Explore all reviews
  113. restlet
    • 27 Sep 2012 - Restlet Framework 2.1.0 released!.
    • Here the exception returned by restlet server : CODESNIPPET_JAVA1 .
    • URL_http://restlet.org/discover/features [ URL_http://restlet.org/discover/features ] Supports asynchronous request processing, decoupled from IO operations.
    • For URL_http://static.springsource.org/spring/docs/3.0.0.M3/spring-framework- reference/html/ch18s02.html [Restful] I'd use URL_http://blog.springsource.org/2009/03/08/rest-in-spring-3-mvc/ [spring] , or URL_http://www.restlet.org/ [restlet] .
    • After a quick comparison, I found: Resting v0.7: resting-0.7-dev-release-android.jar - 1.3MB (all-in-one according tothe doc) Restlet v2.1.2: org.restlet.jar - 728KB (however must 1MB after adding httpclient extention and json extention) Spring for Android** v1.0.1: spring-android-core-1.0.1.RELEASE.jar 113KB + spring-android-rest-template-1.0.1.RELEASE.jar 186KB + gson-2.2.3.jar 194KB 493KB (without auth support, otherwise spring social will be a dependency) Please correct me if any miss.
    • Nothing that complicated but somehow even though the debug view claims the request object to contain the necessary content the RESTful webservice's response leads me to believe the HTTP header of the request was missing the content.
    • Explore all reviews
  114. com.google.protobuf
    • The best bet is to make sure this jar and the other protobuf jar end up in the same directory when you are running the app so they end up in the same classloader.
    • If play is started in production mode I do not have any errors.
    • Interestingly the class it says it can't find is different: CODESNIPPET_JAVA6 .
    • EDIT added information asked by the comments -- thanks!
    • URL_http://jabsorb.org/ [Jabsorb] also has good (de)serialization package.
    • Explore all reviews
  115. org.apache.axis2
    • Only the first key-value pair will be considered.
    • { "**root**" : ... } ) to fake the parser.
    • The value of the first key-value pair must not be an array.
    • I hope some of you can point me in the right direction.
    • I hope some of you can point me in the right direction.
    • Explore all reviews
  116. net.sf.flexjson
    • Greeeaaaat.
    • Flexjson is great, even when dealing with nasty backend developers ;-).
    • Thanks, but at the time the map sorting is already changed.
    • Does anyone have an idea what I'm doing wrong and how I can fix it?
    • Can anyone please help?Thank you After introducing ObjectFactory as suggested by chubbsondubs: CODESNIPPET_JAVA6 .
    • But now after looking at multiple examples I am at a loss, is it possible to deserialize directly into a list?
    • Explore all reviews
  117. com.jayway.jsonpath
    • I have had the same thoughts, let's see if anyone has a clever idea..
    • The problem is in URL_https://github.com/jayway/JsonPath/blob/master/json- path/src/main/java/com/jayway/jsonpath/internal/PathTokenizer.java [PathTokenizer's] splitPath method.
    • Now also in Java!
    • when I have a value such as CODESNIPPET_JAVA1 .
    • Explore all reviews
  118. jsonassert
    • Or even simpler: JSONAssert.assertJsonEquals( "{foo: 'bar', baz: 'qux'}", {foo: 'bar', baz: 'xyzzy'}");.
    • If your code uses a Set that is converted to JSON for example.The following JSON compare would fail:JSONAssert.assertJsonEquals( "{foo: 'bar', list: [{test: '1'}, {rest: '2'}] }", "{ foo: 'bar', list: [{rest: '2'}, {test: '1'}] }");With the message:junit.framework.AssertionFailedError: : : objects differed at key [list];: arrays first differed at element [0];: objects differed at key [test];.
    • A test looks something like this: CODESNIPPET_JAVA1 .
    • With an expected value of _{id:1}_, this would still pass: _{id:1,moredata:'x'}_.)
    • Explore all reviews
  119. org.codehaus.jettison
    • Please help .
    • I am getting the following Exception when I try to marshall the java object to Json CODESNIPPET_JAVA1 .
    • @Jason :-) 6 mins earlier...
    • Jackson does not depend on Jettison (or vice versa).
    • Your attempt is highly appreciated!
    • This is how URL_http://jettison.codehaus.org/ [Jersey] (JAX- RS reference implementation) converts POJOs to JSON by default.
    • Explore all reviews
  120. org.mongodb
    • Open the file as BINARY (not TEXT!)
    • Which line is it failing on?
    • 2)Once the parsing is over, save the json Object in the Mongo Document.
    • so i am send whole bunch of collection at same time, thats why i need store data, return from mongodb into one jsonstring, which still save in memory but less than what if store in java objects.
    • Now here's some real magic for y'all!
    • Too bad the javadoc site is still down (due to AWS outage earlier today) :(.
    • Explore all reviews
  121. javax.xml
    • @Molly Usually you can do whatever you want with the values you receive and return anything you want, no matter if it's GET or POST.
    • The problem is that most of what I found is for webapps, in which the part of the configuration which I need is under the hood.
    • Yeah, sometimes it's the answers lower-down on the list that actually end-up working.
    • Have to go, sorry.
    • What does your JAXB-annotated model look like?
    • The problem was the we left the old JAXB provider hanging around with it's @Provider annotation.
    • Explore all reviews
  122. org.jboss
    • Pretty print JSON output in JBoss RESTful service.
    • There are so many things wrong with what you just said.
    • My code looks something like: CODESNIPPET_JAVA1 .
    • Now, when I try to make a REST call to my web service, I get the following exception on the server side: CODESNIPPET_JAVA3 .
    • Everything is working perfectly without the String array.
    • The value of the parameter should be the fully qualified class name of your CODETERM6 .
    • Explore all reviews
  123. org.apache.camel
    • Really good, didn't know the onException !.
    • @adam Yes, missed it.
    • However, now some of my key,value entries will have an optional visibility that I need to put as a nested key value in my map.
    • camel serialize json in dead letter queue.
    • I tried changing my Map to have a value as an object i.e.,: CODESNIPPET_JAVA4 .
    • camel cased names starting with lower case "sampleFieldNameInJava") to a Json field name (i.e.
    • Explore all reviews
  124. commons-httpclient
    • Please accept the answer if it helped you.
    • Below is the exception12-16 00:33:41.110: E/PostToApi(8513): org.json.JSONException: Value [{"3":"6.0.1.8","id":"1","2":"1","1":"1","0":"1" ,"PlatformID":"1","Version":"6.0.1.8","SoftwareID":"1"},{"3":"6.0.1.9","id":"2 ","2":"1","1":"1","0":"2","PlatformID":"1","Version":"6.0.1.9","SoftwareID":"1 "},{"3":"6.0.2.0","id":"3","2":"1","1":"1","0":"3","PlatformID":"1","Version": "6.0.2.0","SoftwareID":"1"},{"3":"6.0.2.1","id":"4","2":"1","1":"1","0":"4","P latformID":"1","Version":"6.0.2.1","SoftwareID":"1"},{"3":"6.1.0.0","id":"5"," 2":"1","1":"1","0":"5","PlatformID":"1","Version":"6.1.0.0","SoftwareID":"1"}] of type org.json.JSONArray cannot be converted to JSONObject I can't see anything wrong with this so any help would be appreciated.
    • @JitendraPatidar: these are the kay and values of your header dude.. please accept answers of you find useful..
    • Here client.execute(postMethod) means it will call execute method in HTTPClient class.. Can you post the code of HTTPClient class...
    • Please advise..
    • I'm having trouble with CODETERM1 transfer in Android.
    • Explore all reviews
  125. javax.servlet
    • How are you compiling the code?
    • I'm trying to develop a servlet to send some JSON Objects but I get several exceptions.
    • JSON IS text, you have to parse the returned value.
    • Is there a problem with the file on the server (.jsp), at some other location (desktop: .html) or maybe with the database (mysql)?
    • If i miss some particulars tell me!
    • I'm posting the relevant code, the for loop isn't closed because the rest of the code is quite long, and this is the part where i'm getting the error.
    • Explore all reviews
  126. redmine
    • @Pete - good call on the results list being null.
    • I'm concerned I'm missing something to do with the inner classes.
    • Looks like Result and time_entries are mapped, but I dont see that mapping (@Serialized) here--------------------------- public class RedmineResponse { public List<Result> results;.
    • Explore all reviews
  127. jstl
    • I want to transfer the value inside ${responseString.response} to a javascript var response** HERE is the javascript function: directionsService.route(request, function(**response**, status) I tried this tutorial; CODESNIPPET_JAVA2 .
    • How can I avoid this?
    • OMG!
    • Explore all reviews
  128. javax.script
    • JSON != JavaScript.
    • I have many static json formats embedded in java script files based on the context of the page i need to send those static json string to corresponding action classes.
    • Anyone got any idea!
    • Explore all reviews
  129. google-threadlocal
    • thanks for the reply will, i tried with the above JVM options too but still no luck.
    • If the number of open sockets after tomcat start is less or little and on the other hand is devastating high when your in-responsibility problem occurs, then you may have an open socket file descriptor leak.
    • Because TCP sockets handled like open file handles.
    • Explore all reviews
  130. struts1
    • I am reading URL_http://struts.apache.org/release/2.2.x/docs/json-plugin.html [this] manual, and there are two questions I want to ask.
    • URL_http://struts.apache.org/2.2.3/docs/json-plugin.html [Struts2-JSON-plugin] allows you to exclude null properties CODESNIPPET_JAVA1 .
    • Add URL_http://struts.apache.org/release/2.2.x/docs/json-plugin.html [json- plugin] to the project dependencies with CODETERM4 .
    • Explore all reviews
  131. jetty
    • Server URL_http://www.eclipse.org/jetty/ [Jetty] or URL_http://tomcat.apache.org/ [Tomcat] supporting Servlet 3.0.
    • type-checking before type-casting might get rid of the warning.
    • For some type safety when working with JSON, you should learn about URL_http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/ajax/JSON.Convertor.html [ URL_http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/ajax/JSON.Convertor.html ] URL_http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/ajax/JSON.Convertible.html [ URL_http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/ajax/JSON.Convertible.html ] URL_http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/ajax/JSON.Generator.html [ URL_http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/ajax/JSON.Generator.html ] Those classes allow you to read JSON directly into Java classes .
    • Caused by: org.codehaus.jackson.JsonParseException: Unexpected character ('$' (code 36)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: org.mortbay.jetty.HttpParser$Input@470edb99; line: 2, column: 16] at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:943) at org.codehaus.jackson.impl.JsonParserBase._reportError(JsonParserBase.java:632) at org.codehaus.jackson.impl.JsonParserBase._reportUnexpectedChar(JsonParserBa se.java:565) at org.codehaus.jackson.impl.Utf8StreamParser._handleUnexpectedVa lue(Utf8StreamParser.java:1077) at org.codehaus.jackson.impl.Utf8StreamParser.
    • Since we have not the time to test both of the technologies I would be happy about some suggestions based on personal experience or on technical aspects.
    • I've got two applications: one runs wink-server on jetty and seems to be providing some JSON data just fine; one runs wink-client on jetty and receives the JSON data just fine.
    • Explore all reviews
  132. com.google.guava
    • :-) .
    • I'll accept Tom's answer as the most informative/provocative.
    • Amazing, though I don't want Foo, just the native Object.
    • Explore all reviews
  133. com.google.appengine
    • Please try to ask more specific questions that have more objective answers.
    • The AccessControlExceptions are due to sandbox restrictions in AppEngine.
    • I'd like to create a Java web application on top of Google AppEngine.
    • I am confused with the discrepancy between CODETERM7 for my JSONArray of JSONObject with JSONArray.
    • Anyway, I tried to parse a JSONArray of Category which include Item List(JSONArray) with CODETERM2 on my own: if I parse for Category like CODETERM3 I get CODETERM4 .
    • I'm re-asking an unanswered question from the now read-only google groups App Engine for Java because I have the exact same problem.
    • Explore all reviews
  134. jpachube
    • I'd like to note that there exists a new Java library that you can find here: URL_https://github.com/cosm/cosm-java .
    • Access denied!
    • Method looks like this CODESNIPPET_JAVA5 .
    • So, looking more closely at the response body I thought maybe that there was something wrong with the data stream.
    • I delete all of the datastreams in the feed, create a new feed, and I get exactly ONE AWESOME HTTP:/1.1 201 - happy, right?
    • Yikes!
    • Explore all reviews
  135. simple-http
    • [enter image description here]( URL_http://i.stack.imgur.com/Y377x.jpg ) All looks good except the response itself - when I turn it into a String it comes back looking strange (not text).
    • Or what did I do wrong during the post to get this response?
    • JSON Web Service over simple HTTP GET/POST.
    • Explore all reviews
  136. liferay
    • There is no clear way to find Assets with certain Tags on them through the JSONWS.
    • I have error 404 if open URL_http://localhost:8080/tunnel-web/jsonws [ URL_http://localhost:8080/tunnel-web/jsonws ] on default Liferay installtion.
    • I have looked through all the CODETERM6 calls and nothing references any kind of CODETERM7 or CODETERM8 parameter.
    • Explore all reviews
  137. org.json
    • sry man, new here.. :) Exactly what I was trying to do in the meantime :).
    • Maybe I wasn't clear in my question.
    • Lucky you!.
    • Incorrect.
    • Are you trying to populate a custom Java data structure, or do you just want to quickly retrieve one or two values from the JSON and move on?
    • I tried this and it did the trick.
    • Explore all reviews
  138. org.glassfish.jersey
    • I was thinking something like [this]( URL_http://pastebin.com/XJy4gkNj)Also since I'll be receiving various files on the client, how should I treat the HttpResponse's entity response?
    • I do not have a clue about Jersey, sorry.
    • Looks like you're outputting an object, not a string.
    • Sorry but where the add of the {"Ratings": string is added ?
    • Yeah, sometimes it's the answers lower-down on the list that actually end-up working.
    • Have to go, sorry.
    • Explore all reviews
  139. org.springframework
    • Yes true Josh, actually your approach does sound good also.
    • Sorry for the confusion with invalid json.
    • Post your "Property" class code too please.
    • However, I am still unclear of the stuff it is doing?
    • How are you posting the data, as part of a form, ajax request?
    • The other thing is how do you separate domain objects from objects exposed to API?
    • Explore all reviews
  140. org.jboss.resteasy
    • Changing Default JSON Time Format with RESTEasy 3.x.
    • Datastore StringProperty has a limitation of 500 characters.
    • It works automatically by wrapping your results in a js callback once it sees a query parameter named "callback" in the url.
    • but when I call search api, I receve this response: (here a little part of response) CODESNIPPET_JAVA5 .
    • Do you know how to RESTEasy to output value as string?
    • How to force RESTEasy output number as string in json?
    • Explore all reviews
  141. java.util
    • Show the code of your Registration class, please.
    • @user2784435 ah, my bad, I missed the surrounding [].
    • Do you also want all the "inherited" properties that comes with java.util.Properties, like java.home ?
    • When I try to start the server, I get the following complaint SEVERE: Missing dependency for method public java.util.Map com.blah.foo.PriceHandler.handlePrice(java.util.List) at parameter at index 0 SEVERE: Method public java.util.Map com.blah.foo.PriceHandler.handlePrice(java.util.List), annotated with POST of class com.blah.foo.PriceHandler, is not recognized as a valid resource method.
    • You are absolutely right!
    • gson trying to parse the groups array: The JsonDeserializer com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter@1f4db697 failed to deserialize json object "[{\"sigTemplateId\": 1, \"sigTemplateGroupId\": 1, \"name\": \"Group 1\", \"ordinal\": 1}]" given the type java.util.ArrayList My object code is: CODESNIPPET_JAVA3 .
    • Explore all reviews
  142. junit
    • Thank you for the sample code.
    • I already have import static org.hamcrest.Matchers.hasItem;import static org.junit.Assert.assertThat;.
    • My test code looks like : CODESNIPPET_JAVA2 .
    • If your code uses a Set that is converted to JSON for example.The following JSON compare would fail:JSONAssert.assertJsonEquals( "{foo: 'bar', list: [{test: '1'}, {rest: '2'}] }", "{ foo: 'bar', list: [{rest: '2'}, {test: '1'}] }");With the message:junit.framework.AssertionFailedError: : : objects differed at key [list];: arrays first differed at element [0];: objects differed at key [test];.
    • My helper methods for the test case looks like: CODESNIPPET_JAVA3 .
    • It should be a valid method call If you want to compare a list of items then this may help: URL_http://junit.sourceforge.net/javadoc/org/junit/matchers/JUnitMatchers.html [ URL_http://junit.sourceforge.net/javadoc/org/junit/matchers/JUnitMatchers.html ] .
    • Explore all reviews
  143. org.hibernate
    • possible duplicate of [Mapping postgreSQL JSON column to Hibernate value type]( URL_http://stackoverflow.com/questions/15974474/mapping-postgresql-json - column-to-hibernate-value-type).
    • And you may not want that, because it may slow down your app.
    • I want to get JSON like this : {"Id": 18, "Name": "Release"}.
    • But it will make the method transactional so be careful with unwanted consequences.
    • Assume I have an attribute like this: CODESNIPPET_JAVA1 .
    • Because of the Hibernate lazy loading at the serialization time you end up with Hibernate proxy collections.
    • Explore all reviews
  144. xstream
    • Oops!
    • Thanks @atomman (+1) - Unofrtunately, this morning I realized that my JSON string at the top of my question was incorrect, so I edited it to reflect the actual (correct) JSON I'm dealing with.
    • Correct answer to the wrong question - I'm just interested in XStream here, who's JettisonMappedXmlDriver is perfectly suited for JSON.
    • Here a code sample found on XStream implementation website ( URL_http://xstream.codehaus.org/json-tutorial.html [Xstream-website] ): CODESNIPPET_JAVA1 .
    • The server will send back the correct type based on one of: the HTTP Accept header a "filetype extension", such as ".json" a querystring parameter, such as "format=json" .
    • May be you can choose another lib, refer to URL_http://json - lib.sourceforge.net/apidocs/jdk15/net/sf/json/JSONObject.html.
    • Explore all reviews
  145. org.joda
    • I suppose a patch will be welcome ;).
    • JSON: [{"Description":"Cliente Jos","EndDate":"/Date(1353319200000+0000)/","ID":0,"S tartDate":"/Date(1353315600000+0000)/"},{"Description":"Cliente Carlos","EndDa te":"/Date(1353348000000+0000)/","ID":0,"StartDate":"/Date(1353344400000+0000) /"},{"Description":"Cliente Pedro","EndDate":"/Date(1353513600000+0000)/","ID" :0,"StartDate":"/Date(1353510000000+0000)/"},{"Description":"Cliente Marco","E ndDate":"/Date(1353664800000+0000)/","ID":0,"StartDate":"/Date(1353661200000+0 000)/"},{"Description":"Cliente Jos","EndDate":"/Date(1353319200000+0000)/","I D":0,"StartDate":"/Date(1353315600000+0000)/"},{"Description":"Cliente Carlos" ,"EndDate":"/Date(1353348000000+0000)/","ID":0,"StartDate":"/Date(135334440000 0+0000)/"},{"Description":"Cliente Pedro","EndDate":"/Date(1353513600000+0000) /","ID":0,"StartDate":"/Date(1353510000000+0000)/"},{"Description":"Cliente Ma rco","EndDate":"/Date(1353664800000+0000)/","ID":0,"StartDate":"/Date(13536612 00000+0000)/"}] Full log 01-03 17:39:24.700: E/dalvikvm(18494): Unable to resolve Lorg/joda/time/base/AbstractInstant; annotation class 155701-03 17:39:28.505: W/dalvikvm(18494): threadid=11: thread exiting with uncaught exception (group=0x40c4d1f8)01-03 17:39:28.650: E/AndroidRuntime(18494): FATAL EXCEPTION: AsyncTask 101-03 17:39:28.650: E/AndroidRuntime(18494): java.lang.RuntimeException: An error occured while executing doInBackground()01-03 17:39:28.650: E/AndroidRuntime(18494): at android.os.AsyncTask$3.done(AsyncTask.java:278)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask$Sync.innerSetExcep tion(FutureTask.java:273)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask.run(FutureTask.java:137)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1076)01-03 17:39:28.650: E/AndroidRuntime(18494): at j ava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 01-03 17:39:28.650: E/AndroidRuntime(18494): at java.lang.Thread.run(Thread.java:856)01-03 17:39:28.650: E/AndroidRuntime(18494): Caused by: java.lang.NoClassDefFoundError: org/joda/convert/ToString01-03 17:39:28.650: E/AndroidRuntime(18494): at java.lang.reflect.Method.getDeclaredAnnotations(Native Method)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.lang.reflect.Method.getDeclaredAnnotations(Method.java:267)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.intro spect.AnnotatedClass._addMixUnders(AnnotatedClass.java:999)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.Annotate dClass._addMemberMethods(AnnotatedClass.java:610)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.Annotate dClass.resolveMemberMethods(AnnotatedClass.java:421)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.Annotate dClass.memberMethods(AnnotatedClass.java:243)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.POJOProp ertiesCollector._addMethods(POJOPropertiesCollector.java:442)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.intro spect.POJOPropertiesCollector.collect(POJOPropertiesCollector.java:232)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.intro spect.BasicClassIntrospector.collectProperties(BasicClassIntrospector.java:142 )01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databin d.introspect.BasicClassIntrospector.forDeserialization(BasicClassIntrospector.
    • Could you expand on this please?
    • This seemed to do the trick for me: URL_http://stackoverflow.com/questions/3269459/how-to-serialize-joda-datetime- with-jackson-json-processer [How-to-serialize-Joda-DateTime-with-Jackson-JSON- processer?]
    • Thanks for your reply by the way.
    • Do you have the optional URL_http://joda-convert.sourceforge.net/ [joda- convert] jar on your classpath?
    • Explore all reviews
  146. com.google.gwt
    • if you want to gson on client side then you have to try this library URL_https://github.com/heroandtn3/bGwtGson .
    • GWT: conflicting classes in the gwt-user.jar.
    • So How can I represent the AutoBean from my Example2 Class with init values?
    • This sounds like a stupid question, but I cannot find the answer.
    • Which one is good Java or Json in GWT client?
    • URL_http://mojo.codehaus.org/gwt-maven-plugin/compile-mojo.html [maven-gwt- plugin] with parameter URL_http://mojo.codehaus.org/gwt-maven-plugin/compile- mojo.html#compileSourcesArtifacts [compileSourcesArtifacts] will do all sources management work and will let you to compile GWT module.
    • Explore all reviews
  147. com.google.code.gson
    • Your question is not very clear... do you want a list of objects Movie with an attribute name, which contains the value of either "movieName" or "movieTitle"?
    • Beware of GSON.
    • Well, I was thinking about it too.
    • Sorry, this is not an answer to my question.
    • For those of us who are also new, a quick note on how you "cleaned up" the white space/newlines would be appreciated.
    • [RuntimeTypeAdapter]( URL_http://code.google.com/p/google-gson/source/browse/trun k/extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.
    • Explore all reviews
  148. elasticsearch
    • We can turn off dynamic type mapping by putting CODETERM16 in CODETERM17 .
    • By default, CODETERM5 is CODETERM6 .
    • While reading the doc, for me it says "creates a mapping called tweet within the twitter index", this means XXX is the mapping name and YYY is the type name.
    • Sorry, I'm new to ElasticSearch.
    • If I already provided the type name in the url, why should i still provide a type name in the content?If I provide the type name in the content, why can't I just call some url like: CODESNIPPET_JAVA3 .
    • Explore all reviews
  149. freemarker
    • I have tried accessing the value under key "0" by [0], ["0"].
    • The problem was that, similar to hashmaps, freemarker wants a string key.
    • Hopefully they'll put one in the next version of Freemarker!.
    • If you want to reuse the macro in multiple templates, put it in its own file and URL_http://freemarker.sourceforge.net/docs/ref_directive_include.html [include-the-file] instead of duplicating the macro: CODESNIPPET_JAVA2 .
    • @Skurpi The advantage is that js_string does the necessary escaping while j_string does not.
    • Explore all reviews
  150. com.fasterxml.jackson
    • You are the man....!!
    • The problem is that most of what I found is for webapps, in which the part of the configuration which I need is under the hood.
    • Weeell here's something that I made up: URL_http://pastebin.com/w4thyPVK .
    • I think your question is similar to this question: URL_http://stackoverflow.com/questions/17605524/jackson-delay-deserializing - field/17625688 Maybe my answer for this question give you idea how to solve your problem.
    • please, add it.
    • @user2784435 ah, my bad, I missed the surrounding [].
    • Explore all reviews
  151. com.extjs
    • When my store's pageSize the totalCount property returned by my request the grid spins; loading infinitely or until the response's totalCount != pageSize.
    • The json response is (truncated to 1 result): CODESNIPPET_JAVA2 .
    • I'll post my code please see if I need to improve it and where.
    • I'm new in URL_http://en.wikipedia.org/wiki/Ext_%28JavaScript_library%29 [Ext] and I have a problem: I'm trying to fill extjs-grid with data: CODESNIPPET_JAVA1 .
    • Dynamic data store for ExtJS chart.
    • which represents same information, I don't have any problems.
    • Explore all reviews
  152. eclipselink
    • made my day!.
    • EDIT**:This is what Fiddler captures when I post the JSON data: CODESNIPPET_JAVA7 .
    • Especially Blaise Doughan answers where very helpful.Search for CODESNIPPET_JAVA2 .
    • By default this will be CODETERM3 .
    • I would recommend the following: CODESNIPPET_JAVA2 .
    • Thanks (and sorry for the lameness here).
    • Explore all reviews
  153. json-p
    • Since both are obviously geared towards JSON, is there any planned interoperability between them (ie.
    • Yeah sorry you are right !With a request from my browser (typing url) I get the valid JSON.But when I get the JSON with Javascript, with jQuery jsonP, escape symbols are removed ...
    • It works automatically by wrapping your results in a js callback once it sees a query parameter named "callback" in the url.
    • But now, when I check ir the URI works in the browser, with: URL_http://localhost:8080/restws/json/product/get?callback=process [ URL_http://localhost:8080/restws/json/product/get?callback=process ] i have this error message: HTTP ERROR: 404 Could not find resource for relative : /json/product/get of full path: URL_http://localhost:8080/restws/json/product/get?callback=process [ URL_http://localhost:8080/restws/json/product/get?callback=process ] RequestURI=/restws/json/product/get Can somebody help me with understanding why it's giving me this error after this minor changing?
    • How can Iknow what's the response value returned?
    • Once the forward chain is complete you can then check the content type, make sure you want to wrap the response as JSONP, then write the captured data into the real response, along with the JSONP prefix and suffix.
    • Explore all reviews
  154. com.googlecode.json-simple
    • I'll be very grateful CODESNIPPET_JAVA1 .
    • @SLaks: In UserFacingService, it returns bad\u0020stuff.
    • I am hitting a service and sometimes getting back something like this: CODESNIPPET_JAVA1 .
    • @SLaks: In UserFacingService, it returns bad\u0020stuff.
    • and sometimes getting return like this: CODESNIPPET_JAVA2 .
    • Sending CODETERM7 should cause the user facing service to reject the command: CODESNIPPET_JAVA3 .
    • Explore all reviews
  155. quick-json
    • Thank you so much, if you want to answer the question with that, I'd be happy to accept it as an answer.
    • @SLaks: In UserFacingService, it returns bad\u0020stuff.
    • Here's the code, any help is greatly appreciated Tutorial link: URL_https://code.google.com/p/quick-json/ [ URL_https://code.google.com/p/quick-json/ ] CODESNIPPET_JAVA1 .
    • Sending CODETERM7 should cause the user facing service to reject the command: CODESNIPPET_JAVA3 .
    • Explore all reviews
  156. org.apache.sling
    • if you find something, give me a sign :) .
    • URL_http://sling.ap ache.org/apidocs/sling6/org/apache/sling/commons/json/JSONObject.html [http:// sling.apache.org/apidocs/sling6/org/apache/sling/commons/json/JSONObject.html] .
    • Explore all reviews
  157. cassandra
    • Why would the database care abount the contents of the string.
    • Suppose you have some complex JSON like: CODESNIPPET_JAVA1 .
    • Explore all reviews
  158. org.grails
    • I'm working on some Facebook OAuth 2.0 code to fix a current plugin.
    • Exposing them as web services is harmful, imo.
    • Explore all reviews
  159. open-esb
    • Only the first key-value pair will be considered.
    • { "**root**" : ... } ) to fake the parser.
    • The value of the first key-value pair must not be an array.
    • I mean is their any way I can manipulate the json data before the esb converts it into json data.
    • Explore all reviews
  160. net.sf.spring-json
    • Very cool, I was actually wondering about this earlier today.
    • Take look at this: URL_http://spring-json.sourceforge.net/quick_simpleform.html [ URL_http://spring - json.sourceforge.net/quick_simpleform.html] You have to create file views.xml in yoru WEB-INF direcotry with this content: CODESNIPPET_JAVA2 .
    • btw: my POST data looks like this: CODESNIPPET_JAVA5 .
    • Take a look at URL_http://spring-json.sourceforge.net/ [Spring-Json-view] and the CODETERM1 class.
    • Explore all reviews
  161. java.net
    • Any thoughts or inside knowledge would be appreciated.
    • The default Date format is same as java.text.DateFormat.DEFAULT.
    • Explore all reviews
  162. ch.qos.logback
    • Yeah!
    • The reason is I want to parse the JSON again and want to avoid the unescaping of the data.
    • Explore all reviews
  163. org.yaml
    • I like YAML, and about 12 languages with third-party libraries are listed at yaml.org.
    • May be my OP was not clear.
    • Encoding your data to a stream of bytes (JSON, XML, YAML, X.509 DER, Java Serialization) 2.
    • My problem is that I know our application will grow substantially in the future, and writing all the getters, setters, serialization, factories, etc.
    • YAML::XS ( URL_http://search.cpan.org/dist/YAML-LibYAML /) is currently the best YAML parser for Perl.
    • by hand fills me with absolute dread.
    • Explore all reviews
  164. java.io
    • Glad you posted since I forgot to post my solution after I solved the problem :D.
    • Sorry, your example is not very enlightening.
    • Explore all reviews
  165. org.apache.solr
    • Hi David, the o/p comes from solr, I am not sure about the unified object...can you throw some light on this please?
    • Maven really should have some sort of conflicting versions of dependency resolution scheme... .
    • Explore all reviews
  166. gwt-platform
    • If the CODETERM14 is uncommented, CODETERM15 's values output twice in the first row, then in the second row, then the table contain only these CODETERM16 's values.
    • the widget usage, is terribly wrong).
    • Explore all reviews
  167. net.sf.json-lib
    • perfectly fits android json lib when writing unit tests on desktop.
    • Because the documentation says so - URL_http://json-lib.sourceforge.net/apidocs/jd k15/net/sf/json/JSONObject.html#getString(java.lang.String).
    • Your answer is helpful.
    • Note that Jackson ( URL_http://jackson.codehaus.org ) can deserialize the example JSON above to a Map without custom processing, and JSON-lib ( URL_http://json - lib.sourceforge.net) can similarly deserialize to a Map (Map map JSONObject.fromObject(json);).
    • did you checkout whether the channel variable doesn't have same value??
    • Because the documentation says so - URL_http://json-lib.sourceforge.net/apidocs/jd k15/net/sf/json/JSONObject.html#getString(java.lang.String).
    • Explore all reviews
  168. robospice
    • However I cannot return and array (I've tried with the CODETERM4 too) from CODETERM5 , what would be the best workaround here?
    • What else can I be doing wrong - can it be about encoding of the body?
    • Explore all reviews
  169. org.boon
    • Or!
    • URL_https://github.com/RichardHightower/boon [ URL_https://github.com/RichardHightower/boon ] I am bias.
    • Explore all reviews
  170. tomcat
    • Server URL_http://www.eclipse.org/jetty/ [Jetty] or URL_http://tomcat.apache.org/ [Tomcat] supporting Servlet 3.0.
    • You can deploy it to a freshly installed URL_http://www.jboss.org/jbossas/downloads/ [JBoss- AS-7.1.1.Final] (just throw the war file in the deploy folder) or a URL_http://tomcat.apache.org/download-70.cgi [Tomcat] .
    • Explore all reviews
  171. org.apache.struts
    • does it have any advantages over the first one you have mentioned........
    • your package, which includes your action should extends json-default, struts2 2.1.6 have not integrated json plugin, you should include it by yourself on the classpath.
    • If you run your code without the compression part does it successfully pass the response?
    • json-default?
    • Thanks for all the possible stepss to track the issue.
    • Struts 2 returns a whole action class with even request params!.
    • Explore all reviews
  172. spring
    • @sanity oh, spring then.
    • See: URL_http://spring-java - ee.blogspot.com/2010/12/how-to-dumpinspect-object-or-variable.html.
    • For URL_http://static.springsource.org/spring/docs/3.0.0.M3/spring-framework- reference/html/ch18s02.html [Restful] I'd use URL_http://blog.springsource.org/2009/03/08/rest-in-spring-3-mvc/ [spring] , or URL_http://www.restlet.org/ [restlet] .
    • Explore all reviews
  173. rhino
    • What's the best way of achieving the requirement?
    • These JSON files are coming from an external source (not Java).
    • On JavaScript objects, failed property lookups return CODETERM2 .
    • Explore all reviews
  174. org.apache.avro
    • Which seems valid JSON - validated with URL_http://jsonformatter.curiousconcept.com/ [ URL_http://jsonformatter.curiousconcept.com/ ] However my Svenson object defined like this: CODESNIPPET_JAVA2 .
    • Some implementations may embed implementation class names by default which makes the protocol less change-resistant.
    • You may want to make nothing redundant goes on the wire.
    • Explore all reviews
  175. commons-lang
    • Download the URL_http://commons.apache.org/lang/download_lang.cgi [commons- lang-x.y-bin.
    • It depends on Apache Commons too, so you got that error:> Json-lib requires (at least) the following dependencies in your classpath:> jakarta commons-lang 2.5> jakarta commons-beanutils 1.8.0> jakarta commons-collections 3.2.1> jakarta commons- logging 1.1.1> ezmorph 1.0.6.
    • From URL_http://json-lib.sourceforge.net/ [json-lib-homepage] : Json-lib requires (at least) the following dependencies in your classpath: 1. jakarta commons-lang 2.5 2. jakarta commons-beanutils 1.8.0 3. jakarta commons-collections 3.2.1 4. jakarta commons-logging 1.1.1 5. ezmorph 1.0.6 That your implementation compiles only shows that the compiler can find the right classes and methods.
    • More information on project dependencies can be found URL_http://json- lib.sourceforge.net/dependencies.html [here] .
    • Thats the wrong version of commons lang.
    • Dependencies: URL_http://sourceforge.net/projects/json-lib/files/json-lib/json-lib-2.4/json-lib-2.4-jdk15.jar/download [json-lib-2.4-jdk15.jar] URL_http://commons.apache.org/lang/download_lang.cgi [commons-lang-2.6.jar] URL_http://commons.apache.org/logging/download_logging.cgi [commons-logging-1.1.1.jar] URL_http://commons.apache.org/collections/download_collections.cgi [commons-collections-3.2.1.jar] URL_http://commons.apache.org/beanutils/download_beanutils.cgi [commons-beanutils-1.8.0.jar] URL_http://sourceforge.net/projects/ezmorph/files/ezmorph/ezmorph-1.0.6/ezmorph-1.0.6.jar/download [ezmorph-1.0.6.jar] .
    • Explore all reviews
  176. b3log-latke
    • See URL_https://code.google.com/p/latke/source/browse/trunk/latke- gae/src/main/java/org/b3log/latke/repository/gae/GAERepository.java [here] for a implementation of JSON <-> Entity mapping.
    • Explore all reviews
  177. commons-beanutils
    • It depends on Apache Commons too, so you got that error:> Json-lib requires (at least) the following dependencies in your classpath:> jakarta commons-lang 2.5> jakarta commons-beanutils 1.8.0> jakarta commons-collections 3.2.1> jakarta commons- logging 1.1.1> ezmorph 1.0.6.
    • From URL_http://json-lib.sourceforge.net/ [json-lib-homepage] : Json-lib requires (at least) the following dependencies in your classpath: 1. jakarta commons-lang 2.5 2. jakarta commons-beanutils 1.8.0 3. jakarta commons-collections 3.2.1 4. jakarta commons-logging 1.1.1 5. ezmorph 1.0.6 That your implementation compiles only shows that the compiler can find the right classes and methods.
    • More information on project dependencies can be found URL_http://json- lib.sourceforge.net/dependencies.html [here] .
    • Dependencies: URL_http://sourceforge.net/projects/json-lib/files/json-lib/json-lib-2.4/json-lib-2.4-jdk15.jar/download [json-lib-2.4-jdk15.jar] URL_http://commons.apache.org/lang/download_lang.cgi [commons-lang-2.6.jar] URL_http://commons.apache.org/logging/download_logging.cgi [commons-logging-1.1.1.jar] URL_http://commons.apache.org/collections/download_collections.cgi [commons-collections-3.2.1.jar] URL_http://commons.apache.org/beanutils/download_beanutils.cgi [commons-beanutils-1.8.0.jar] URL_http://sourceforge.net/projects/ezmorph/files/ezmorph/ezmorph-1.0.6/ezmorph-1.0.6.jar/download [ezmorph-1.0.6.jar] .
    • Explore all reviews
  178. sonar
    • I tried this Resource struts sonar.find(ResourceQuery.createForMetrics("int egrationContinue:integrationContinue", "coverage", "lines", "violations"));Measure s=struts.getMeasure("coverage");System.out.println(s.getData());.
    • Explore all reviews
  179. anjsonserializer
    • In case you need java objects out of your JSON data , you may try my small databinding library building on GSON (shameles self advertising off): URL_https://github.com/ko5tik/jsonserializer [ URL_https://github.com/ko5tik/jsonserializer ] .
    • Explore all reviews
  180. org.jboss.jbossas
    • You can deploy it to a freshly installed URL_http://www.jboss.org/jbossas/downloads/ [JBoss- AS-7.1.1.Final] (just throw the war file in the deploy folder) or a URL_http://tomcat.apache.org/download-70.cgi [Tomcat] .
    • Explore all reviews
  181. com.github.fge
    • Shameless plug: URL_https://github.com/fge/json-schema- validator [ URL_https://github.com/fge/json-schema-validator ] .
    • Explore all reviews
  182. org.everit.osgi.bundles
    • You can see the CODETERM1 constructor right in the URL_https://github.com/douglascrockford/JSON-java/blob/master/JSONObject.java [source-for-JSONObject.java] .
    • The exception is caught and the conversion method basically just returns the original string ("0") again unconverted.
    • I looked at the source and it looks like it may throw CODETERM1 , which basically resulting in a failed conversion to a number: URL_https://github.com/douglascrockford/JSON-java/blob/master/XML.java [ URL_https://github.com/douglascrockford/JSON-java/blob/master/XML.java ] (line 327): CODESNIPPET_JAVA1 .
    • Explore all reviews
  183. org.slf4j
    • The reason is I want to parse the JSON again and want to avoid the unescaping of the data.
    • Explore all reviews
  184. jackson-jaxrs-providers
    • source: URL_https://github.com/FasterXML/jackson-jaxrs-providers/ [Git] .
    • Explore all reviews
  185. jsonrpc4j
    • I made a little example to show my problem: Abstract class: CODESNIPPET_JAVA1 .
    • Explore all reviews
  186. anathema
    • The representation is still 'stateless' in the response that is issued, regardless of the action taken upon each item.
    • You'll fighting against the grain if you try.
    • Explore all reviews
  187. org.apache.wink
    • Exception created : [javax.ws.rs.WebApplicationException: com.ibm.ws.jsp.webcontainerext.JSPErrorReport: JSPG0036E: Failed to find resource /HtmlDefaultRepresentation/defaultHtmlEntry.jsp at org.apache.wink.se rver.internal.providers.entity.html.HtmlProvider.include(HtmlProvider.java:78) at org.apache.wink.server.internal.providers.entity.html.HtmlProvider.writeTo( HtmlProvider.java:112) at org.apache.wink.server.internal.providers.entity.htm l.HtmlProvider.writeTo(HtmlProvider.java:46) at org.apache.wink.server.interna l.providers.entity.html.HtmlSyndEntryProvider.writeTo(HtmlSyndEntryProvider.ja va:81) at org.apache.wink.server.internal.providers.entity.html.HtmlSyndEntryP rovider.writeTo(HtmlSyndEntryProvider.java:38) at org.apache.wink.common.inter nal.providers.entity.FormatedExceptionProvider.writeTo(FormatedExceptionProvid er.java:108) at org.apache.wink.common.internal.providers.entity.FormatedExcep tionProvider.writeTo(FormatedExceptionProvider.java:48) at org.apache.wink.ser ver.internal.handlers.FlushResultHandler.handleResponse(FlushResultHandler.jav a:199) at org.apache.wink.server.handlers.AbstractHandler.handleResponse(Abstr actHandler.java:38) at org.apache.wink.server.handlers.ResponseHandlersChain.h andle(ResponseHandlersChain.java:26) at org.apache.wink.server.handlers.Respon seHandlersChain.handle(ResponseHandlersChain.java:22) at org.apache.wink.serve r.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75) at org .apache.wink.server.handlers.AbstractHandler.handleResponse(AbstractHandler.ja va:39) at org.apache.wink.server.handlers.ResponseHandlersChain.handle(Respons eHandlersChain.java:26) at org.apache.wink.server.handlers.ResponseHandlersCha in.handle(ResponseHandlersChain.java:22) at org.apache.wink.server.handlers.Ab stractHandlersChain.doChain(AbstractHandlersChain.java:75) at org.apache.wink.
    • Explore all reviews
  188. commons-logging
    • From URL_http://json-lib.sourceforge.net/ [json-lib-homepage] : Json-lib requires (at least) the following dependencies in your classpath: 1. jakarta commons-lang 2.5 2. jakarta commons-beanutils 1.8.0 3. jakarta commons-collections 3.2.1 4. jakarta commons-logging 1.1.1 5. ezmorph 1.0.6 That your implementation compiles only shows that the compiler can find the right classes and methods.
    • More information on project dependencies can be found URL_http://json- lib.sourceforge.net/dependencies.html [here] .
    • Explore all reviews
  189. net.java
  190. spring-android
  191. org.mvel
  192. commons-collections
    • It depends on Apache Commons too, so you got that error:> Json-lib requires (at least) the following dependencies in your classpath:> jakarta commons-lang 2.5> jakarta commons-beanutils 1.8.0> jakarta commons-collections 3.2.1> jakarta commons- logging 1.1.1> ezmorph 1.0.6.
    • From URL_http://json-lib.sourceforge.net/ [json-lib-homepage] : Json-lib requires (at least) the following dependencies in your classpath: 1. jakarta commons-lang 2.5 2. jakarta commons-beanutils 1.8.0 3. jakarta commons-collections 3.2.1 4. jakarta commons-logging 1.1.1 5. ezmorph 1.0.6 That your implementation compiles only shows that the compiler can find the right classes and methods.
    • More information on project dependencies can be found URL_http://json- lib.sourceforge.net/dependencies.html [here] .
    • Explore all reviews
  193. org.postgis
    • I have a problem while trying to send a PostGIS Object (actually a PGgeometry) through a RestFul service.
    • Explore all reviews
  194. spring-finance-manager
    • These tutorials had references to source code - do you know where the links are to said source code?
    • Explore all reviews
  195. com.jamonapi
    • I would consider bringing in URL_http://jamonapi.sourceforge.net / and measure, measure, measure.
    • Explore all reviews
  196. dom4j
    • I'd suggest URL_http://dom4j.sourceforge.net/dom4j-1.6.1/ [Dom4J] : CODESNIPPET_JAVA1 .
    • Explore all reviews
  197. org.apache.maven.plugins
    • In the module that you want to include, you'll have to URL_http://maven.apache.org/plugins/maven-source-plugin/usage.html [enable- the-generation-of-source-package] .
    • Explore all reviews
  198. metadata-extractor
    • This snippet uses the latest release candidate, URL_http://code.google.com/p /metadata-extractor/downloads/detail?name=metadata- extractor-2.5.0-RC3.zip&can=2&q= [ URL_http://code.google.com/p/metadata - extractor/downloads/detail?name=metadata-extractor-2.5.0-RC3.zip&can=2&q=] At least that's a start with the extraction, which I believe is the hard part.
    • Explore all reviews
  199. joda-convert
    • Do you have the optional URL_http://joda-convert.sourceforge.net/ [joda- convert] jar on your classpath?
    • Explore all reviews
  200. ezmorph
    • It depends on Apache Commons too, so you got that error:> Json-lib requires (at least) the following dependencies in your classpath:> jakarta commons-lang 2.5> jakarta commons-beanutils 1.8.0> jakarta commons-collections 3.2.1> jakarta commons- logging 1.1.1> ezmorph 1.0.6.
    • From URL_http://json-lib.sourceforge.net/ [json-lib-homepage] : Json-lib requires (at least) the following dependencies in your classpath: 1. jakarta commons-lang 2.5 2. jakarta commons-beanutils 1.8.0 3. jakarta commons-collections 3.2.1 4. jakarta commons-logging 1.1.1 5. ezmorph 1.0.6 That your implementation compiles only shows that the compiler can find the right classes and methods.
    • More information on project dependencies can be found URL_http://json- lib.sourceforge.net/dependencies.html [here] .
    • Explore all reviews
  201. elephant-bird
    • Any ideas, with the exception of squishing the JSON... file will be huge... on how to properly split the file such that the JSON does not break.
    • Explore all reviews
  202. dumbledroid
    • URL_https://github.com/leocadiotine/Dumbledroid [ URL_https://github.com/leocadiotine/Dumbledroid ] The error appears to me is this: CODESNIPPET_JAVA7 .
    • Explore all reviews
  203. org.codehaus.mojo
    • URL_http://mojo.codehaus.org/gwt-maven-plugin/compile-mojo.html [maven-gwt- plugin] with parameter URL_http://mojo.codehaus.org/gwt-maven-plugin/compile- mojo.html#compileSourcesArtifacts [compileSourcesArtifacts] will do all sources management work and will let you to compile GWT module.
    • Explore all reviews
  204. commons-jexl
  205. com.github.rwl
    • There are two Java libraries with DataTable objects: [GWT DataTable]( URL_http://code.google.com/p/gwt-google-apis/source/browse/trunk/visual ization/visualization/src/com/google/gwt/visualization/client/DataTable.java?r 1153) and [Java Datasource Library DataTable]( URL_http://code.google.com/apis/cha rt/interactive/docs/dev/dsl_javadocs/com/google/visualization/datasource/datat able/DataTable.html).
    • Explore all reviews
  206. xalan
    • Xalan does accept DOM source as input.
    • This fails with Xalan 2.5.1 (the version we are using).
    • Explore all reviews
  207. org.json4s
  208. java.math
  209. javajson
    • here's the link: URL_https://sourceforge.net/projects/javajson/ [ URL_https://sourceforge.net/projects/javajson/ ] .
    • Unfortunately some of the web services are external and non-RESTful.
    • Explore all reviews
  210. carlos
    • JSON: [{"Description":"Cliente Jos","EndDate":"/Date(1353319200000+0000)/","ID":0,"S tartDate":"/Date(1353315600000+0000)/"},{"Description":"Cliente Carlos","EndDa te":"/Date(1353348000000+0000)/","ID":0,"StartDate":"/Date(1353344400000+0000) /"},{"Description":"Cliente Pedro","EndDate":"/Date(1353513600000+0000)/","ID" :0,"StartDate":"/Date(1353510000000+0000)/"},{"Description":"Cliente Marco","E ndDate":"/Date(1353664800000+0000)/","ID":0,"StartDate":"/Date(1353661200000+0 000)/"},{"Description":"Cliente Jos","EndDate":"/Date(1353319200000+0000)/","I D":0,"StartDate":"/Date(1353315600000+0000)/"},{"Description":"Cliente Carlos" ,"EndDate":"/Date(1353348000000+0000)/","ID":0,"StartDate":"/Date(135334440000 0+0000)/"},{"Description":"Cliente Pedro","EndDate":"/Date(1353513600000+0000) /","ID":0,"StartDate":"/Date(1353510000000+0000)/"},{"Description":"Cliente Ma rco","EndDate":"/Date(1353664800000+0000)/","ID":0,"StartDate":"/Date(13536612 00000+0000)/"}] Full log 01-03 17:39:24.700: E/dalvikvm(18494): Unable to resolve Lorg/joda/time/base/AbstractInstant; annotation class 155701-03 17:39:28.505: W/dalvikvm(18494): threadid=11: thread exiting with uncaught exception (group=0x40c4d1f8)01-03 17:39:28.650: E/AndroidRuntime(18494): FATAL EXCEPTION: AsyncTask 101-03 17:39:28.650: E/AndroidRuntime(18494): java.lang.RuntimeException: An error occured while executing doInBackground()01-03 17:39:28.650: E/AndroidRuntime(18494): at android.os.AsyncTask$3.done(AsyncTask.java:278)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask$Sync.innerSetExcep tion(FutureTask.java:273)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask.run(FutureTask.java:137)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1076)01-03 17:39:28.650: E/AndroidRuntime(18494): at j ava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 01-03 17:39:28.650: E/AndroidRuntime(18494): at java.lang.Thread.run(Thread.java:856)01-03 17:39:28.650: E/AndroidRuntime(18494): Caused by: java.lang.NoClassDefFoundError: org/joda/convert/ToString01-03 17:39:28.650: E/AndroidRuntime(18494): at java.lang.reflect.Method.getDeclaredAnnotations(Native Method)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.lang.reflect.Method.getDeclaredAnnotations(Method.java:267)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.intro spect.AnnotatedClass._addMixUnders(AnnotatedClass.java:999)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.Annotate dClass._addMemberMethods(AnnotatedClass.java:610)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.Annotate dClass.resolveMemberMethods(AnnotatedClass.java:421)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.Annotate dClass.memberMethods(AnnotatedClass.java:243)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.POJOProp ertiesCollector._addMethods(POJOPropertiesCollector.java:442)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.intro spect.POJOPropertiesCollector.collect(POJOPropertiesCollector.java:232)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.intro spect.BasicClassIntrospector.collectProperties(BasicClassIntrospector.java:142 )01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databin d.introspect.BasicClassIntrospector.forDeserialization(BasicClassIntrospector.
    • Explore all reviews
  211. jdbchelper
    • The sb and json variables are initilized two times, once at the top and then again in the try block.
    • Explore all reviews
  212. google-plugin-for-eclipse
    • See Google Eclipse Plugin support for Google CLoud Endpoints URL_https://developers.google.com/eclipse/docs/cloud_endpoints [here] .
    • Explore all reviews
  213. net.sf.ehcache
    • How to invalidate cache when administrator changes changes the JSON message?
    • Explore all reviews
  214. commons-codec
    • Sometime's it misses the ending CODETERM3 of JSONsometime it misses CODETERM4 in the end of the string.
    • Explore all reviews
  215. com.google
    • Exception in thread "main" java.lang.NoSuchMethodError: com.google.gson.internal.$Gson$Types.isArray(Ljava/lang/reflect/Type;)Z at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:111) at com.google .gson.JsonSerializationContextDefault.serialize(JsonSerializationContextDefaul t.java.
    • JsonParseException: The JsonDeserializer com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter@a17378 failed to deserialized json object {"type":"java.util.Collections$CheckedRandomAccessLis t","content":"[{\"ID\":5,\"tradable\":{\"id\":5,\"tradableName\":\"Tradable1\" ,\"moneyMultiplier\":1},\"Action\":\"buy\",\"amount\":501.0,\"price\":50.3,\"p ortfolio\":{\"ID\":2,\"portfolioName\":\"Portfolio2\"},\"account\":{\"ID\":1,\ "accountName\":\"Account1\",\"bank\":{\"ID\":1,\"BankName\":\"Bank1\"}},\"date \":\"12:17:36 02/01/1970\",\"activitySum\":0.0,\"aggregated\":false},{\"ID\":6 ,\"tradable\":{\"id\":6,\"tradableName\":\"Tradable1\",\"moneyMultiplier\":1}, \"Action\":\"sell\",\"amount\":1001.0,\"price\":50.4,\"portfolio\":{\"ID\":2,\ "portfolioName\":\"Portfolio2\"},\"account\":{\"ID\":2,\"accountName\":\"Accou nt2\",\"bank\":{\"ID\":2,\"BankName\":\"Bank2\"}},\"date\":\"12:17:36 02/01/19 70\",\"activitySum\":0.0,\"aggregated\":false},{\"ID\":7,\"tradable\":{\"id\": 7,\"tradableName\":\"Tradable2\",\"moneyMultiplier\":1},\"Action\":\"buy\",\"a mount\":502.0,\"price\":50.5,\"portfolio\":{\"ID\":2,\"portfolioName\":\"Portf olio2\"},\"account\":{\"ID\":1,\"accountName\":\"Account1\",\"bank\":{\"ID\":1 ,\"BankName\":\"Bank1\"}},\"date\":\"12:17:36 02/01/1970\",\"activitySum\":0.0 ,\"aggregated\":false},{\"ID\":8,\"tradable\":{\"id\":8,\"tradableName\":\"Tra dable2\",\"moneyMultiplier\":1},\"Action\":\"sell\",\"amount\":1002.0,\"price\ ":50.6,\"portfolio\":{\"ID\":2,\"portfolioName\":\"Portfolio2\"},\"account\":{ \"ID\":2,\"accountName\":\"Account2\",\"bank\":{\"ID\":2,\"BankName\":\"Bank2\ "}},\"date\":\"12:17:36 02/01/1970\",\"activitySum\":0.0,\"aggregated\":false}]"} given the type java.util.Collection at com.google.gson.JsonDeserializerExceptionWrapper.deser ialize(JsonDeserializerExceptionWrapper.java:63) at com.google.gson.JsonDeseri alizationVisitor.invokeCustomDeserializer(JsonDeserializationVisitor.java:88) at com.google.gson.JsonDeserializationVisitor.visitUsingCustomHandler(JsonDese rializationVisitor.java:76) at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:98) at com.google.
    • gson.JsonDeserializationContextDefault.fromJsonObject(JsonDeserializationConte xtDefault.java:73) at com.google.gson.JsonDeserializationContextDefault.deseri alize(JsonDeserializationContextDefault.java:51) at com.google.gson.Gson.fromJson(Gson.java:495) at com.google.gson.Gson.fromJson(Gson.java:444) at com.google.gson.Gson.fromJson(Gson.java:396) at positions.server.services.Posi tionServerServicesInternalWrapperTest.testGetPositionsForPortfolio(PositionSer verServicesInternalWrapperTest.java:134) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Fram eworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.ru n(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invok eExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements .InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.BlockJUnit4C lassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.Block JUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.junit.runner.JUnitCore.run(JUnitCore.java:157) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:65) Caused by: java.lang.IllegalStateException: This is not a JSON Array.
    • Explore all reviews
  1. google-plugin-for-eclipse
    • See Google Eclipse Plugin support for Google CLoud Endpoints URL_https://developers.google.com/eclipse/docs/cloud_endpoints [here] .
    • Explore all reviews
  2. jackson-jaxrs-providers
    • source: URL_https://github.com/FasterXML/jackson-jaxrs-providers/ [Git] .
    • Explore all reviews
  3. anathema
    • The representation is still 'stateless' in the response that is issued, regardless of the action taken upon each item.
    • You'll fighting against the grain if you try.
    • Explore all reviews
  4. jsonrpc4j
    • I made a little example to show my problem: Abstract class: CODESNIPPET_JAVA1 .
    • Explore all reviews
  5. org.everit.osgi.bundles
    • You can see the CODETERM1 constructor right in the URL_https://github.com/douglascrockford/JSON-java/blob/master/JSONObject.java [source-for-JSONObject.java] .
    • The exception is caught and the conversion method basically just returns the original string ("0") again unconverted.
    • I looked at the source and it looks like it may throw CODETERM1 , which basically resulting in a failed conversion to a number: URL_https://github.com/douglascrockford/JSON-java/blob/master/XML.java [ URL_https://github.com/douglascrockford/JSON-java/blob/master/XML.java ] (line 327): CODESNIPPET_JAVA1 .
    • Explore all reviews
  6. com.github.fge
    • Shameless plug: URL_https://github.com/fge/json-schema- validator [ URL_https://github.com/fge/json-schema-validator ] .
    • Explore all reviews
  7. org.apache.maven.plugins
    • In the module that you want to include, you'll have to URL_http://maven.apache.org/plugins/maven-source-plugin/usage.html [enable- the-generation-of-source-package] .
    • Explore all reviews
  8. anjsonserializer
    • In case you need java objects out of your JSON data , you may try my small databinding library building on GSON (shameles self advertising off): URL_https://github.com/ko5tik/jsonserializer [ URL_https://github.com/ko5tik/jsonserializer ] .
    • Explore all reviews
  9. dumbledroid
    • URL_https://github.com/leocadiotine/Dumbledroid [ URL_https://github.com/leocadiotine/Dumbledroid ] The error appears to me is this: CODESNIPPET_JAVA7 .
    • Explore all reviews
  10. b3log-latke
    • See URL_https://code.google.com/p/latke/source/browse/trunk/latke- gae/src/main/java/org/b3log/latke/repository/gae/GAERepository.java [here] for a implementation of JSON <-> Entity mapping.
    • Explore all reviews
  11. com.google
    • Exception in thread "main" java.lang.NoSuchMethodError: com.google.gson.internal.$Gson$Types.isArray(Ljava/lang/reflect/Type;)Z at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:111) at com.google .gson.JsonSerializationContextDefault.serialize(JsonSerializationContextDefaul t.java.
    • JsonParseException: The JsonDeserializer com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter@a17378 failed to deserialized json object {"type":"java.util.Collections$CheckedRandomAccessLis t","content":"[{\"ID\":5,\"tradable\":{\"id\":5,\"tradableName\":\"Tradable1\" ,\"moneyMultiplier\":1},\"Action\":\"buy\",\"amount\":501.0,\"price\":50.3,\"p ortfolio\":{\"ID\":2,\"portfolioName\":\"Portfolio2\"},\"account\":{\"ID\":1,\ "accountName\":\"Account1\",\"bank\":{\"ID\":1,\"BankName\":\"Bank1\"}},\"date \":\"12:17:36 02/01/1970\",\"activitySum\":0.0,\"aggregated\":false},{\"ID\":6 ,\"tradable\":{\"id\":6,\"tradableName\":\"Tradable1\",\"moneyMultiplier\":1}, \"Action\":\"sell\",\"amount\":1001.0,\"price\":50.4,\"portfolio\":{\"ID\":2,\ "portfolioName\":\"Portfolio2\"},\"account\":{\"ID\":2,\"accountName\":\"Accou nt2\",\"bank\":{\"ID\":2,\"BankName\":\"Bank2\"}},\"date\":\"12:17:36 02/01/19 70\",\"activitySum\":0.0,\"aggregated\":false},{\"ID\":7,\"tradable\":{\"id\": 7,\"tradableName\":\"Tradable2\",\"moneyMultiplier\":1},\"Action\":\"buy\",\"a mount\":502.0,\"price\":50.5,\"portfolio\":{\"ID\":2,\"portfolioName\":\"Portf olio2\"},\"account\":{\"ID\":1,\"accountName\":\"Account1\",\"bank\":{\"ID\":1 ,\"BankName\":\"Bank1\"}},\"date\":\"12:17:36 02/01/1970\",\"activitySum\":0.0 ,\"aggregated\":false},{\"ID\":8,\"tradable\":{\"id\":8,\"tradableName\":\"Tra dable2\",\"moneyMultiplier\":1},\"Action\":\"sell\",\"amount\":1002.0,\"price\ ":50.6,\"portfolio\":{\"ID\":2,\"portfolioName\":\"Portfolio2\"},\"account\":{ \"ID\":2,\"accountName\":\"Account2\",\"bank\":{\"ID\":2,\"BankName\":\"Bank2\ "}},\"date\":\"12:17:36 02/01/1970\",\"activitySum\":0.0,\"aggregated\":false}]"} given the type java.util.Collection at com.google.gson.JsonDeserializerExceptionWrapper.deser ialize(JsonDeserializerExceptionWrapper.java:63) at com.google.gson.JsonDeseri alizationVisitor.invokeCustomDeserializer(JsonDeserializationVisitor.java:88) at com.google.gson.JsonDeserializationVisitor.visitUsingCustomHandler(JsonDese rializationVisitor.java:76) at com.google.gson.ObjectNavigator.accept(ObjectNavigator.java:98) at com.google.
    • gson.JsonDeserializationContextDefault.fromJsonObject(JsonDeserializationConte xtDefault.java:73) at com.google.gson.JsonDeserializationContextDefault.deseri alize(JsonDeserializationContextDefault.java:51) at com.google.gson.Gson.fromJson(Gson.java:495) at com.google.gson.Gson.fromJson(Gson.java:444) at com.google.gson.Gson.fromJson(Gson.java:396) at positions.server.services.Posi tionServerServicesInternalWrapperTest.testGetPositionsForPortfolio(PositionSer verServicesInternalWrapperTest.java:134) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:25) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Fram eworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.ru n(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invok eExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements .InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.runners.BlockJUnit4C lassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.Block JUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.junit.runner.JUnitCore.run(JUnitCore.java:157) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:65) Caused by: java.lang.IllegalStateException: This is not a JSON Array.
    • Explore all reviews
  12. commons-codec
    • Sometime's it misses the ending CODETERM3 of JSONsometime it misses CODETERM4 in the end of the string.
    • Explore all reviews
  13. org.slf4j
    • The reason is I want to parse the JSON again and want to avoid the unescaping of the data.
    • Explore all reviews
  14. org.jboss.jbossas
    • You can deploy it to a freshly installed URL_http://www.jboss.org/jbossas/downloads/ [JBoss- AS-7.1.1.Final] (just throw the war file in the deploy folder) or a URL_http://tomcat.apache.org/download-70.cgi [Tomcat] .
    • Explore all reviews
  15. net.sf.ehcache
    • How to invalidate cache when administrator changes changes the JSON message?
    • Explore all reviews
  16. sonar
    • I tried this Resource struts sonar.find(ResourceQuery.createForMetrics("int egrationContinue:integrationContinue", "coverage", "lines", "violations"));Measure s=struts.getMeasure("coverage");System.out.println(s.getData());.
    • Explore all reviews
  17. org.postgis
    • I have a problem while trying to send a PostGIS Object (actually a PGgeometry) through a RestFul service.
    • Explore all reviews
  18. javajson
    • here's the link: URL_https://sourceforge.net/projects/javajson/ [ URL_https://sourceforge.net/projects/javajson/ ] .
    • Unfortunately some of the web services are external and non-RESTful.
    • Explore all reviews
  19. java.math
  20. elephant-bird
    • Any ideas, with the exception of squishing the JSON... file will be huge... on how to properly split the file such that the JSON does not break.
    • Explore all reviews
  21. org.json4s
  22. commons-beanutils
    • It depends on Apache Commons too, so you got that error:> Json-lib requires (at least) the following dependencies in your classpath:> jakarta commons-lang 2.5> jakarta commons-beanutils 1.8.0> jakarta commons-collections 3.2.1> jakarta commons- logging 1.1.1> ezmorph 1.0.6.
    • From URL_http://json-lib.sourceforge.net/ [json-lib-homepage] : Json-lib requires (at least) the following dependencies in your classpath: 1. jakarta commons-lang 2.5 2. jakarta commons-beanutils 1.8.0 3. jakarta commons-collections 3.2.1 4. jakarta commons-logging 1.1.1 5. ezmorph 1.0.6 That your implementation compiles only shows that the compiler can find the right classes and methods.
    • More information on project dependencies can be found URL_http://json- lib.sourceforge.net/dependencies.html [here] .
    • Dependencies: URL_http://sourceforge.net/projects/json-lib/files/json-lib/json-lib-2.4/json-lib-2.4-jdk15.jar/download [json-lib-2.4-jdk15.jar] URL_http://commons.apache.org/lang/download_lang.cgi [commons-lang-2.6.jar] URL_http://commons.apache.org/logging/download_logging.cgi [commons-logging-1.1.1.jar] URL_http://commons.apache.org/collections/download_collections.cgi [commons-collections-3.2.1.jar] URL_http://commons.apache.org/beanutils/download_beanutils.cgi [commons-beanutils-1.8.0.jar] URL_http://sourceforge.net/projects/ezmorph/files/ezmorph/ezmorph-1.0.6/ezmorph-1.0.6.jar/download [ezmorph-1.0.6.jar] .
    • Explore all reviews
  23. commons-jexl
  24. carlos
    • JSON: [{"Description":"Cliente Jos","EndDate":"/Date(1353319200000+0000)/","ID":0,"S tartDate":"/Date(1353315600000+0000)/"},{"Description":"Cliente Carlos","EndDa te":"/Date(1353348000000+0000)/","ID":0,"StartDate":"/Date(1353344400000+0000) /"},{"Description":"Cliente Pedro","EndDate":"/Date(1353513600000+0000)/","ID" :0,"StartDate":"/Date(1353510000000+0000)/"},{"Description":"Cliente Marco","E ndDate":"/Date(1353664800000+0000)/","ID":0,"StartDate":"/Date(1353661200000+0 000)/"},{"Description":"Cliente Jos","EndDate":"/Date(1353319200000+0000)/","I D":0,"StartDate":"/Date(1353315600000+0000)/"},{"Description":"Cliente Carlos" ,"EndDate":"/Date(1353348000000+0000)/","ID":0,"StartDate":"/Date(135334440000 0+0000)/"},{"Description":"Cliente Pedro","EndDate":"/Date(1353513600000+0000) /","ID":0,"StartDate":"/Date(1353510000000+0000)/"},{"Description":"Cliente Ma rco","EndDate":"/Date(1353664800000+0000)/","ID":0,"StartDate":"/Date(13536612 00000+0000)/"}] Full log 01-03 17:39:24.700: E/dalvikvm(18494): Unable to resolve Lorg/joda/time/base/AbstractInstant; annotation class 155701-03 17:39:28.505: W/dalvikvm(18494): threadid=11: thread exiting with uncaught exception (group=0x40c4d1f8)01-03 17:39:28.650: E/AndroidRuntime(18494): FATAL EXCEPTION: AsyncTask 101-03 17:39:28.650: E/AndroidRuntime(18494): java.lang.RuntimeException: An error occured while executing doInBackground()01-03 17:39:28.650: E/AndroidRuntime(18494): at android.os.AsyncTask$3.done(AsyncTask.java:278)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask$Sync.innerSetExcep tion(FutureTask.java:273)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask.run(FutureTask.java:137)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1076)01-03 17:39:28.650: E/AndroidRuntime(18494): at j ava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 01-03 17:39:28.650: E/AndroidRuntime(18494): at java.lang.Thread.run(Thread.java:856)01-03 17:39:28.650: E/AndroidRuntime(18494): Caused by: java.lang.NoClassDefFoundError: org/joda/convert/ToString01-03 17:39:28.650: E/AndroidRuntime(18494): at java.lang.reflect.Method.getDeclaredAnnotations(Native Method)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.lang.reflect.Method.getDeclaredAnnotations(Method.java:267)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.intro spect.AnnotatedClass._addMixUnders(AnnotatedClass.java:999)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.Annotate dClass._addMemberMethods(AnnotatedClass.java:610)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.Annotate dClass.resolveMemberMethods(AnnotatedClass.java:421)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.Annotate dClass.memberMethods(AnnotatedClass.java:243)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.POJOProp ertiesCollector._addMethods(POJOPropertiesCollector.java:442)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.intro spect.POJOPropertiesCollector.collect(POJOPropertiesCollector.java:232)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.intro spect.BasicClassIntrospector.collectProperties(BasicClassIntrospector.java:142 )01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databin d.introspect.BasicClassIntrospector.forDeserialization(BasicClassIntrospector.
    • Explore all reviews
  25. com.github.rwl
    • There are two Java libraries with DataTable objects: [GWT DataTable]( URL_http://code.google.com/p/gwt-google-apis/source/browse/trunk/visual ization/visualization/src/com/google/gwt/visualization/client/DataTable.java?r 1153) and [Java Datasource Library DataTable]( URL_http://code.google.com/apis/cha rt/interactive/docs/dev/dsl_javadocs/com/google/visualization/datasource/datat able/DataTable.html).
    • Explore all reviews
  26. commons-collections
    • It depends on Apache Commons too, so you got that error:> Json-lib requires (at least) the following dependencies in your classpath:> jakarta commons-lang 2.5> jakarta commons-beanutils 1.8.0> jakarta commons-collections 3.2.1> jakarta commons- logging 1.1.1> ezmorph 1.0.6.
    • From URL_http://json-lib.sourceforge.net/ [json-lib-homepage] : Json-lib requires (at least) the following dependencies in your classpath: 1. jakarta commons-lang 2.5 2. jakarta commons-beanutils 1.8.0 3. jakarta commons-collections 3.2.1 4. jakarta commons-logging 1.1.1 5. ezmorph 1.0.6 That your implementation compiles only shows that the compiler can find the right classes and methods.
    • More information on project dependencies can be found URL_http://json- lib.sourceforge.net/dependencies.html [here] .
    • Explore all reviews
  27. dom4j
    • I'd suggest URL_http://dom4j.sourceforge.net/dom4j-1.6.1/ [Dom4J] : CODESNIPPET_JAVA1 .
    • Explore all reviews
  28. xalan
    • Xalan does accept DOM source as input.
    • This fails with Xalan 2.5.1 (the version we are using).
    • Explore all reviews
  29. org.mvel
  30. org.codehaus.mojo
    • URL_http://mojo.codehaus.org/gwt-maven-plugin/compile-mojo.html [maven-gwt- plugin] with parameter URL_http://mojo.codehaus.org/gwt-maven-plugin/compile- mojo.html#compileSourcesArtifacts [compileSourcesArtifacts] will do all sources management work and will let you to compile GWT module.
    • Explore all reviews
  31. ezmorph
    • It depends on Apache Commons too, so you got that error:> Json-lib requires (at least) the following dependencies in your classpath:> jakarta commons-lang 2.5> jakarta commons-beanutils 1.8.0> jakarta commons-collections 3.2.1> jakarta commons- logging 1.1.1> ezmorph 1.0.6.
    • From URL_http://json-lib.sourceforge.net/ [json-lib-homepage] : Json-lib requires (at least) the following dependencies in your classpath: 1. jakarta commons-lang 2.5 2. jakarta commons-beanutils 1.8.0 3. jakarta commons-collections 3.2.1 4. jakarta commons-logging 1.1.1 5. ezmorph 1.0.6 That your implementation compiles only shows that the compiler can find the right classes and methods.
    • More information on project dependencies can be found URL_http://json- lib.sourceforge.net/dependencies.html [here] .
    • Explore all reviews
  32. joda-convert
    • Do you have the optional URL_http://joda-convert.sourceforge.net/ [joda- convert] jar on your classpath?
    • Explore all reviews
  33. spring-finance-manager
    • These tutorials had references to source code - do you know where the links are to said source code?
    • Explore all reviews
  34. metadata-extractor
    • This snippet uses the latest release candidate, URL_http://code.google.com/p /metadata-extractor/downloads/detail?name=metadata- extractor-2.5.0-RC3.zip&can=2&q= [ URL_http://code.google.com/p/metadata - extractor/downloads/detail?name=metadata-extractor-2.5.0-RC3.zip&can=2&q=] At least that's a start with the extraction, which I believe is the hard part.
    • Explore all reviews
  35. com.jamonapi
    • I would consider bringing in URL_http://jamonapi.sourceforge.net / and measure, measure, measure.
    • Explore all reviews
  36. jdbchelper
    • The sb and json variables are initilized two times, once at the top and then again in the try block.
    • Explore all reviews
  37. org.apache.wink
    • Exception created : [javax.ws.rs.WebApplicationException: com.ibm.ws.jsp.webcontainerext.JSPErrorReport: JSPG0036E: Failed to find resource /HtmlDefaultRepresentation/defaultHtmlEntry.jsp at org.apache.wink.se rver.internal.providers.entity.html.HtmlProvider.include(HtmlProvider.java:78) at org.apache.wink.server.internal.providers.entity.html.HtmlProvider.writeTo( HtmlProvider.java:112) at org.apache.wink.server.internal.providers.entity.htm l.HtmlProvider.writeTo(HtmlProvider.java:46) at org.apache.wink.server.interna l.providers.entity.html.HtmlSyndEntryProvider.writeTo(HtmlSyndEntryProvider.ja va:81) at org.apache.wink.server.internal.providers.entity.html.HtmlSyndEntryP rovider.writeTo(HtmlSyndEntryProvider.java:38) at org.apache.wink.common.inter nal.providers.entity.FormatedExceptionProvider.writeTo(FormatedExceptionProvid er.java:108) at org.apache.wink.common.internal.providers.entity.FormatedExcep tionProvider.writeTo(FormatedExceptionProvider.java:48) at org.apache.wink.ser ver.internal.handlers.FlushResultHandler.handleResponse(FlushResultHandler.jav a:199) at org.apache.wink.server.handlers.AbstractHandler.handleResponse(Abstr actHandler.java:38) at org.apache.wink.server.handlers.ResponseHandlersChain.h andle(ResponseHandlersChain.java:26) at org.apache.wink.server.handlers.Respon seHandlersChain.handle(ResponseHandlersChain.java:22) at org.apache.wink.serve r.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75) at org .apache.wink.server.handlers.AbstractHandler.handleResponse(AbstractHandler.ja va:39) at org.apache.wink.server.handlers.ResponseHandlersChain.handle(Respons eHandlersChain.java:26) at org.apache.wink.server.handlers.ResponseHandlersCha in.handle(ResponseHandlersChain.java:22) at org.apache.wink.server.handlers.Ab stractHandlersChain.doChain(AbstractHandlersChain.java:75) at org.apache.wink.
    • Explore all reviews
  38. net.java
  39. commons-logging
    • From URL_http://json-lib.sourceforge.net/ [json-lib-homepage] : Json-lib requires (at least) the following dependencies in your classpath: 1. jakarta commons-lang 2.5 2. jakarta commons-beanutils 1.8.0 3. jakarta commons-collections 3.2.1 4. jakarta commons-logging 1.1.1 5. ezmorph 1.0.6 That your implementation compiles only shows that the compiler can find the right classes and methods.
    • More information on project dependencies can be found URL_http://json- lib.sourceforge.net/dependencies.html [here] .
    • Explore all reviews
  40. spring-android
  41. commons-lang
    • Download the URL_http://commons.apache.org/lang/download_lang.cgi [commons- lang-x.y-bin.
    • It depends on Apache Commons too, so you got that error:> Json-lib requires (at least) the following dependencies in your classpath:> jakarta commons-lang 2.5> jakarta commons-beanutils 1.8.0> jakarta commons-collections 3.2.1> jakarta commons- logging 1.1.1> ezmorph 1.0.6.
    • From URL_http://json-lib.sourceforge.net/ [json-lib-homepage] : Json-lib requires (at least) the following dependencies in your classpath: 1. jakarta commons-lang 2.5 2. jakarta commons-beanutils 1.8.0 3. jakarta commons-collections 3.2.1 4. jakarta commons-logging 1.1.1 5. ezmorph 1.0.6 That your implementation compiles only shows that the compiler can find the right classes and methods.
    • More information on project dependencies can be found URL_http://json- lib.sourceforge.net/dependencies.html [here] .
    • Thats the wrong version of commons lang.
    • Dependencies: URL_http://sourceforge.net/projects/json-lib/files/json-lib/json-lib-2.4/json-lib-2.4-jdk15.jar/download [json-lib-2.4-jdk15.jar] URL_http://commons.apache.org/lang/download_lang.cgi [commons-lang-2.6.jar] URL_http://commons.apache.org/logging/download_logging.cgi [commons-logging-1.1.1.jar] URL_http://commons.apache.org/collections/download_collections.cgi [commons-collections-3.2.1.jar] URL_http://commons.apache.org/beanutils/download_beanutils.cgi [commons-beanutils-1.8.0.jar] URL_http://sourceforge.net/projects/ezmorph/files/ezmorph/ezmorph-1.0.6/ezmorph-1.0.6.jar/download [ezmorph-1.0.6.jar] .
    • Explore all reviews
  42. rhino
    • What's the best way of achieving the requirement?
    • These JSON files are coming from an external source (not Java).
    • On JavaScript objects, failed property lookups return CODETERM2 .
    • Explore all reviews
  43. org.apache.avro
    • Which seems valid JSON - validated with URL_http://jsonformatter.curiousconcept.com/ [ URL_http://jsonformatter.curiousconcept.com/ ] However my Svenson object defined like this: CODESNIPPET_JAVA2 .
    • Some implementations may embed implementation class names by default which makes the protocol less change-resistant.
    • You may want to make nothing redundant goes on the wire.
    • Explore all reviews
  44. spring
    • @sanity oh, spring then.
    • See: URL_http://spring-java - ee.blogspot.com/2010/12/how-to-dumpinspect-object-or-variable.html.
    • For URL_http://static.springsource.org/spring/docs/3.0.0.M3/spring-framework- reference/html/ch18s02.html [Restful] I'd use URL_http://blog.springsource.org/2009/03/08/rest-in-spring-3-mvc/ [spring] , or URL_http://www.restlet.org/ [restlet] .
    • Explore all reviews
  45. org.apache.struts
    • does it have any advantages over the first one you have mentioned........
    • your package, which includes your action should extends json-default, struts2 2.1.6 have not integrated json plugin, you should include it by yourself on the classpath.
    • If you run your code without the compression part does it successfully pass the response?
    • json-default?
    • Thanks for all the possible stepss to track the issue.
    • Struts 2 returns a whole action class with even request params!.
    • Explore all reviews
  46. open-esb
    • Only the first key-value pair will be considered.
    • { "**root**" : ... } ) to fake the parser.
    • The value of the first key-value pair must not be an array.
    • I mean is their any way I can manipulate the json data before the esb converts it into json data.
    • Explore all reviews
  47. robospice
    • However I cannot return and array (I've tried with the CODETERM4 too) from CODETERM5 , what would be the best workaround here?
    • What else can I be doing wrong - can it be about encoding of the body?
    • Explore all reviews
  48. java.io
    • Glad you posted since I forgot to post my solution after I solved the problem :D.
    • Sorry, your example is not very enlightening.
    • Explore all reviews
  49. cassandra
    • Why would the database care abount the contents of the string.
    • Suppose you have some complex JSON like: CODESNIPPET_JAVA1 .
    • Explore all reviews
  50. org.yaml
    • I like YAML, and about 12 languages with third-party libraries are listed at yaml.org.
    • May be my OP was not clear.
    • Encoding your data to a stream of bytes (JSON, XML, YAML, X.509 DER, Java Serialization) 2.
    • My problem is that I know our application will grow substantially in the future, and writing all the getters, setters, serialization, factories, etc.
    • YAML::XS ( URL_http://search.cpan.org/dist/YAML-LibYAML /) is currently the best YAML parser for Perl.
    • by hand fills me with absolute dread.
    • Explore all reviews
  51. tomcat
    • Server URL_http://www.eclipse.org/jetty/ [Jetty] or URL_http://tomcat.apache.org/ [Tomcat] supporting Servlet 3.0.
    • You can deploy it to a freshly installed URL_http://www.jboss.org/jbossas/downloads/ [JBoss- AS-7.1.1.Final] (just throw the war file in the deploy folder) or a URL_http://tomcat.apache.org/download-70.cgi [Tomcat] .
    • Explore all reviews
  52. net.sf.spring-json
    • Very cool, I was actually wondering about this earlier today.
    • Take look at this: URL_http://spring-json.sourceforge.net/quick_simpleform.html [ URL_http://spring - json.sourceforge.net/quick_simpleform.html] You have to create file views.xml in yoru WEB-INF direcotry with this content: CODESNIPPET_JAVA2 .
    • btw: my POST data looks like this: CODESNIPPET_JAVA5 .
    • Take a look at URL_http://spring-json.sourceforge.net/ [Spring-Json-view] and the CODETERM1 class.
    • Explore all reviews
  53. quick-json
    • Thank you so much, if you want to answer the question with that, I'd be happy to accept it as an answer.
    • @SLaks: In UserFacingService, it returns bad\u0020stuff.
    • Here's the code, any help is greatly appreciated Tutorial link: URL_https://code.google.com/p/quick-json/ [ URL_https://code.google.com/p/quick-json/ ] CODESNIPPET_JAVA1 .
    • Sending CODETERM7 should cause the user facing service to reject the command: CODESNIPPET_JAVA3 .
    • Explore all reviews
  54. java.net
    • Any thoughts or inside knowledge would be appreciated.
    • The default Date format is same as java.text.DateFormat.DEFAULT.
    • Explore all reviews
  55. net.sf.json-lib
    • perfectly fits android json lib when writing unit tests on desktop.
    • Because the documentation says so - URL_http://json-lib.sourceforge.net/apidocs/jd k15/net/sf/json/JSONObject.html#getString(java.lang.String).
    • Your answer is helpful.
    • Note that Jackson ( URL_http://jackson.codehaus.org ) can deserialize the example JSON above to a Map without custom processing, and JSON-lib ( URL_http://json - lib.sourceforge.net) can similarly deserialize to a Map (Map map JSONObject.fromObject(json);).
    • did you checkout whether the channel variable doesn't have same value??
    • Because the documentation says so - URL_http://json-lib.sourceforge.net/apidocs/jd k15/net/sf/json/JSONObject.html#getString(java.lang.String).
    • Explore all reviews
  56. org.grails
    • I'm working on some Facebook OAuth 2.0 code to fix a current plugin.
    • Exposing them as web services is harmful, imo.
    • Explore all reviews
  57. org.apache.sling
    • if you find something, give me a sign :) .
    • URL_http://sling.ap ache.org/apidocs/sling6/org/apache/sling/commons/json/JSONObject.html [http:// sling.apache.org/apidocs/sling6/org/apache/sling/commons/json/JSONObject.html] .
    • Explore all reviews
  58. gwt-platform
    • If the CODETERM14 is uncommented, CODETERM15 's values output twice in the first row, then in the second row, then the table contain only these CODETERM16 's values.
    • the widget usage, is terribly wrong).
    • Explore all reviews
  59. ch.qos.logback
    • Yeah!
    • The reason is I want to parse the JSON again and want to avoid the unescaping of the data.
    • Explore all reviews
  60. org.boon
    • Or!
    • URL_https://github.com/RichardHightower/boon [ URL_https://github.com/RichardHightower/boon ] I am bias.
    • Explore all reviews
  61. org.apache.solr
    • Hi David, the o/p comes from solr, I am not sure about the unified object...can you throw some light on this please?
    • Maven really should have some sort of conflicting versions of dependency resolution scheme... .
    • Explore all reviews
  62. com.googlecode.json-simple
    • I'll be very grateful CODESNIPPET_JAVA1 .
    • @SLaks: In UserFacingService, it returns bad\u0020stuff.
    • I am hitting a service and sometimes getting back something like this: CODESNIPPET_JAVA1 .
    • @SLaks: In UserFacingService, it returns bad\u0020stuff.
    • and sometimes getting return like this: CODESNIPPET_JAVA2 .
    • Sending CODETERM7 should cause the user facing service to reject the command: CODESNIPPET_JAVA3 .
    • Explore all reviews
  63. json-p
    • Since both are obviously geared towards JSON, is there any planned interoperability between them (ie.
    • Yeah sorry you are right !With a request from my browser (typing url) I get the valid JSON.But when I get the JSON with Javascript, with jQuery jsonP, escape symbols are removed ...
    • It works automatically by wrapping your results in a js callback once it sees a query parameter named "callback" in the url.
    • But now, when I check ir the URI works in the browser, with: URL_http://localhost:8080/restws/json/product/get?callback=process [ URL_http://localhost:8080/restws/json/product/get?callback=process ] i have this error message: HTTP ERROR: 404 Could not find resource for relative : /json/product/get of full path: URL_http://localhost:8080/restws/json/product/get?callback=process [ URL_http://localhost:8080/restws/json/product/get?callback=process ] RequestURI=/restws/json/product/get Can somebody help me with understanding why it's giving me this error after this minor changing?
    • How can Iknow what's the response value returned?
    • Once the forward chain is complete you can then check the content type, make sure you want to wrap the response as JSONP, then write the captured data into the real response, along with the JSONP prefix and suffix.
    • Explore all reviews
  64. com.extjs
    • When my store's pageSize the totalCount property returned by my request the grid spins; loading infinitely or until the response's totalCount != pageSize.
    • The json response is (truncated to 1 result): CODESNIPPET_JAVA2 .
    • I'll post my code please see if I need to improve it and where.
    • I'm new in URL_http://en.wikipedia.org/wiki/Ext_%28JavaScript_library%29 [Ext] and I have a problem: I'm trying to fill extjs-grid with data: CODESNIPPET_JAVA1 .
    • Dynamic data store for ExtJS chart.
    • which represents same information, I don't have any problems.
    • Explore all reviews
  65. eclipselink
    • made my day!.
    • EDIT**:This is what Fiddler captures when I post the JSON data: CODESNIPPET_JAVA7 .
    • Especially Blaise Doughan answers where very helpful.Search for CODESNIPPET_JAVA2 .
    • By default this will be CODETERM3 .
    • I would recommend the following: CODESNIPPET_JAVA2 .
    • Thanks (and sorry for the lameness here).
    • Explore all reviews
  66. com.fasterxml.jackson
    • You are the man....!!
    • The problem is that most of what I found is for webapps, in which the part of the configuration which I need is under the hood.
    • Weeell here's something that I made up: URL_http://pastebin.com/w4thyPVK .
    • I think your question is similar to this question: URL_http://stackoverflow.com/questions/17605524/jackson-delay-deserializing - field/17625688 Maybe my answer for this question give you idea how to solve your problem.
    • please, add it.
    • @user2784435 ah, my bad, I missed the surrounding [].
    • Explore all reviews
  67. freemarker
    • I have tried accessing the value under key "0" by [0], ["0"].
    • The problem was that, similar to hashmaps, freemarker wants a string key.
    • Hopefully they'll put one in the next version of Freemarker!.
    • If you want to reuse the macro in multiple templates, put it in its own file and URL_http://freemarker.sourceforge.net/docs/ref_directive_include.html [include-the-file] instead of duplicating the macro: CODESNIPPET_JAVA2 .
    • @Skurpi The advantage is that js_string does the necessary escaping while j_string does not.
    • Explore all reviews
  68. elasticsearch
    • We can turn off dynamic type mapping by putting CODETERM16 in CODETERM17 .
    • By default, CODETERM5 is CODETERM6 .
    • While reading the doc, for me it says "creates a mapping called tweet within the twitter index", this means XXX is the mapping name and YYY is the type name.
    • Sorry, I'm new to ElasticSearch.
    • If I already provided the type name in the url, why should i still provide a type name in the content?If I provide the type name in the content, why can't I just call some url like: CODESNIPPET_JAVA3 .
    • Explore all reviews
  69. com.google.code.gson
    • Your question is not very clear... do you want a list of objects Movie with an attribute name, which contains the value of either "movieName" or "movieTitle"?
    • Beware of GSON.
    • Well, I was thinking about it too.
    • Sorry, this is not an answer to my question.
    • For those of us who are also new, a quick note on how you "cleaned up" the white space/newlines would be appreciated.
    • [RuntimeTypeAdapter]( URL_http://code.google.com/p/google-gson/source/browse/trun k/extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.
    • Explore all reviews
  70. com.google.gwt
    • if you want to gson on client side then you have to try this library URL_https://github.com/heroandtn3/bGwtGson .
    • GWT: conflicting classes in the gwt-user.jar.
    • So How can I represent the AutoBean from my Example2 Class with init values?
    • This sounds like a stupid question, but I cannot find the answer.
    • Which one is good Java or Json in GWT client?
    • URL_http://mojo.codehaus.org/gwt-maven-plugin/compile-mojo.html [maven-gwt- plugin] with parameter URL_http://mojo.codehaus.org/gwt-maven-plugin/compile- mojo.html#compileSourcesArtifacts [compileSourcesArtifacts] will do all sources management work and will let you to compile GWT module.
    • Explore all reviews
  71. org.joda
    • I suppose a patch will be welcome ;).
    • JSON: [{"Description":"Cliente Jos","EndDate":"/Date(1353319200000+0000)/","ID":0,"S tartDate":"/Date(1353315600000+0000)/"},{"Description":"Cliente Carlos","EndDa te":"/Date(1353348000000+0000)/","ID":0,"StartDate":"/Date(1353344400000+0000) /"},{"Description":"Cliente Pedro","EndDate":"/Date(1353513600000+0000)/","ID" :0,"StartDate":"/Date(1353510000000+0000)/"},{"Description":"Cliente Marco","E ndDate":"/Date(1353664800000+0000)/","ID":0,"StartDate":"/Date(1353661200000+0 000)/"},{"Description":"Cliente Jos","EndDate":"/Date(1353319200000+0000)/","I D":0,"StartDate":"/Date(1353315600000+0000)/"},{"Description":"Cliente Carlos" ,"EndDate":"/Date(1353348000000+0000)/","ID":0,"StartDate":"/Date(135334440000 0+0000)/"},{"Description":"Cliente Pedro","EndDate":"/Date(1353513600000+0000) /","ID":0,"StartDate":"/Date(1353510000000+0000)/"},{"Description":"Cliente Ma rco","EndDate":"/Date(1353664800000+0000)/","ID":0,"StartDate":"/Date(13536612 00000+0000)/"}] Full log 01-03 17:39:24.700: E/dalvikvm(18494): Unable to resolve Lorg/joda/time/base/AbstractInstant; annotation class 155701-03 17:39:28.505: W/dalvikvm(18494): threadid=11: thread exiting with uncaught exception (group=0x40c4d1f8)01-03 17:39:28.650: E/AndroidRuntime(18494): FATAL EXCEPTION: AsyncTask 101-03 17:39:28.650: E/AndroidRuntime(18494): java.lang.RuntimeException: An error occured while executing doInBackground()01-03 17:39:28.650: E/AndroidRuntime(18494): at android.os.AsyncTask$3.done(AsyncTask.java:278)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask$Sync.innerSetExcep tion(FutureTask.java:273)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.FutureTask.run(FutureTask.java:137)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1076)01-03 17:39:28.650: E/AndroidRuntime(18494): at j ava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) 01-03 17:39:28.650: E/AndroidRuntime(18494): at java.lang.Thread.run(Thread.java:856)01-03 17:39:28.650: E/AndroidRuntime(18494): Caused by: java.lang.NoClassDefFoundError: org/joda/convert/ToString01-03 17:39:28.650: E/AndroidRuntime(18494): at java.lang.reflect.Method.getDeclaredAnnotations(Native Method)01-03 17:39:28.650: E/AndroidRuntime(18494): at java.lang.reflect.Method.getDeclaredAnnotations(Method.java:267)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.intro spect.AnnotatedClass._addMixUnders(AnnotatedClass.java:999)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.Annotate dClass._addMemberMethods(AnnotatedClass.java:610)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.Annotate dClass.resolveMemberMethods(AnnotatedClass.java:421)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.Annotate dClass.memberMethods(AnnotatedClass.java:243)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.introspect.POJOProp ertiesCollector._addMethods(POJOPropertiesCollector.java:442)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.intro spect.POJOPropertiesCollector.collect(POJOPropertiesCollector.java:232)01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databind.intro spect.BasicClassIntrospector.collectProperties(BasicClassIntrospector.java:142 )01-03 17:39:28.650: E/AndroidRuntime(18494): at com.fasterxml.jackson.databin d.introspect.BasicClassIntrospector.forDeserialization(BasicClassIntrospector.
    • Could you expand on this please?
    • This seemed to do the trick for me: URL_http://stackoverflow.com/questions/3269459/how-to-serialize-joda-datetime- with-jackson-json-processer [How-to-serialize-Joda-DateTime-with-Jackson-JSON- processer?]
    • Thanks for your reply by the way.
    • Do you have the optional URL_http://joda-convert.sourceforge.net/ [joda- convert] jar on your classpath?
    • Explore all reviews
  72. org.hibernate
    • possible duplicate of [Mapping postgreSQL JSON column to Hibernate value type]( URL_http://stackoverflow.com/questions/15974474/mapping-postgresql-json - column-to-hibernate-value-type).
    • And you may not want that, because it may slow down your app.
    • I want to get JSON like this : {"Id": 18, "Name": "Release"}.
    • But it will make the method transactional so be careful with unwanted consequences.
    • Assume I have an attribute like this: CODESNIPPET_JAVA1 .
    • Because of the Hibernate lazy loading at the serialization time you end up with Hibernate proxy collections.
    • Explore all reviews
  73. xstream
    • Oops!
    • Thanks @atomman (+1) - Unofrtunately, this morning I realized that my JSON string at the top of my question was incorrect, so I edited it to reflect the actual (correct) JSON I'm dealing with.
    • Correct answer to the wrong question - I'm just interested in XStream here, who's JettisonMappedXmlDriver is perfectly suited for JSON.
    • Here a code sample found on XStream implementation website ( URL_http://xstream.codehaus.org/json-tutorial.html [Xstream-website] ): CODESNIPPET_JAVA1 .
    • The server will send back the correct type based on one of: the HTTP Accept header a "filetype extension", such as ".json" a querystring parameter, such as "format=json" .
    • May be you can choose another lib, refer to URL_http://json - lib.sourceforge.net/apidocs/jdk15/net/sf/json/JSONObject.html.
    • Explore all reviews
  74. junit
    • Thank you for the sample code.
    • I already have import static org.hamcrest.Matchers.hasItem;import static org.junit.Assert.assertThat;.
    • My test code looks like : CODESNIPPET_JAVA2 .
    • If your code uses a Set that is converted to JSON for example.The following JSON compare would fail:JSONAssert.assertJsonEquals( "{foo: 'bar', list: [{test: '1'}, {rest: '2'}] }", "{ foo: 'bar', list: [{rest: '2'}, {test: '1'}] }");With the message:junit.framework.AssertionFailedError: : : objects differed at key [list];: arrays first differed at element [0];: objects differed at key [test];.
    • My helper methods for the test case looks like: CODESNIPPET_JAVA3 .
    • It should be a valid method call If you want to compare a list of items then this may help: URL_http://junit.sourceforge.net/javadoc/org/junit/matchers/JUnitMatchers.html [ URL_http://junit.sourceforge.net/javadoc/org/junit/matchers/JUnitMatchers.html ] .
    • Explore all reviews
  75. java.util
    • Show the code of your Registration class, please.
    • @user2784435 ah, my bad, I missed the surrounding [].
    • Do you also want all the "inherited" properties that comes with java.util.Properties, like java.home ?
    • When I try to start the server, I get the following complaint SEVERE: Missing dependency for method public java.util.Map com.blah.foo.PriceHandler.handlePrice(java.util.List) at parameter at index 0 SEVERE: Method public java.util.Map com.blah.foo.PriceHandler.handlePrice(java.util.List), annotated with POST of class com.blah.foo.PriceHandler, is not recognized as a valid resource method.
    • You are absolutely right!
    • gson trying to parse the groups array: The JsonDeserializer com.google.gson.DefaultTypeAdapters$CollectionTypeAdapter@1f4db697 failed to deserialize json object "[{\"sigTemplateId\": 1, \"sigTemplateGroupId\": 1, \"name\": \"Group 1\", \"ordinal\": 1}]" given the type java.util.ArrayList My object code is: CODESNIPPET_JAVA3 .
    • Explore all reviews
  76. org.jboss.resteasy
    • Changing Default JSON Time Format with RESTEasy 3.x.
    • Datastore StringProperty has a limitation of 500 characters.
    • It works automatically by wrapping your results in a js callback once it sees a query parameter named "callback" in the url.
    • but when I call search api, I receve this response: (here a little part of response) CODESNIPPET_JAVA5 .
    • Do you know how to RESTEasy to output value as string?
    • How to force RESTEasy output number as string in json?
    • Explore all reviews
  77. org.springframework
    • Yes true Josh, actually your approach does sound good also.
    • Sorry for the confusion with invalid json.
    • Post your "Property" class code too please.
    • However, I am still unclear of the stuff it is doing?
    • How are you posting the data, as part of a form, ajax request?
    • The other thing is how do you separate domain objects from objects exposed to API?
    • Explore all reviews
  78. org.glassfish.jersey
    • I was thinking something like [this]( URL_http://pastebin.com/XJy4gkNj)Also since I'll be receiving various files on the client, how should I treat the HttpResponse's entity response?
    • I do not have a clue about Jersey, sorry.
    • Looks like you're outputting an object, not a string.
    • Sorry but where the add of the {"Ratings": string is added ?
    • Yeah, sometimes it's the answers lower-down on the list that actually end-up working.
    • Have to go, sorry.
    • Explore all reviews
  79. org.json
    • sry man, new here.. :) Exactly what I was trying to do in the meantime :).
    • Maybe I wasn't clear in my question.
    • Lucky you!.
    • Incorrect.
    • Are you trying to populate a custom Java data structure, or do you just want to quickly retrieve one or two values from the JSON and move on?
    • I tried this and it did the trick.
    • Explore all reviews
  80. simple-http
    • [enter image description here]( URL_http://i.stack.imgur.com/Y377x.jpg ) All looks good except the response itself - when I turn it into a String it comes back looking strange (not text).
    • Or what did I do wrong during the post to get this response?
    • JSON Web Service over simple HTTP GET/POST.
    • Explore all reviews
  81. jstl
    • I want to transfer the value inside ${responseString.response} to a javascript var response** HERE is the javascript function: directionsService.route(request, function(**response**, status) I tried this tutorial; CODESNIPPET_JAVA2 .
    • How can I avoid this?
    • OMG!
    • Explore all reviews
  82. javax.script
    • JSON != JavaScript.
    • I have many static json formats embedded in java script files based on the context of the page i need to send those static json string to corresponding action classes.
    • Anyone got any idea!
    • Explore all reviews
  83. com.google.appengine
    • Please try to ask more specific questions that have more objective answers.
    • The AccessControlExceptions are due to sandbox restrictions in AppEngine.
    • I'd like to create a Java web application on top of Google AppEngine.
    • I am confused with the discrepancy between CODETERM7 for my JSONArray of JSONObject with JSONArray.
    • Anyway, I tried to parse a JSONArray of Category which include Item List(JSONArray) with CODETERM2 on my own: if I parse for Category like CODETERM3 I get CODETERM4 .
    • I'm re-asking an unanswered question from the now read-only google groups App Engine for Java because I have the exact same problem.
    • Explore all reviews
  84. google-threadlocal
    • thanks for the reply will, i tried with the above JVM options too but still no luck.
    • If the number of open sockets after tomcat start is less or little and on the other hand is devastating high when your in-responsibility problem occurs, then you may have an open socket file descriptor leak.
    • Because TCP sockets handled like open file handles.
    • Explore all reviews
  85. jetty
    • Server URL_http://www.eclipse.org/jetty/ [Jetty] or URL_http://tomcat.apache.org/ [Tomcat] supporting Servlet 3.0.
    • type-checking before type-casting might get rid of the warning.
    • For some type safety when working with JSON, you should learn about URL_http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/ajax/JSON.Convertor.html [ URL_http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/ajax/JSON.Convertor.html ] URL_http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/ajax/JSON.Convertible.html [ URL_http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/ajax/JSON.Convertible.html ] URL_http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/ajax/JSON.Generator.html [ URL_http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/util/ajax/JSON.Generator.html ] Those classes allow you to read JSON directly into Java classes .
    • Caused by: org.codehaus.jackson.JsonParseException: Unexpected character ('$' (code 36)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: org.mortbay.jetty.HttpParser$Input@470edb99; line: 2, column: 16] at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:943) at org.codehaus.jackson.impl.JsonParserBase._reportError(JsonParserBase.java:632) at org.codehaus.jackson.impl.JsonParserBase._reportUnexpectedChar(JsonParserBa se.java:565) at org.codehaus.jackson.impl.Utf8StreamParser._handleUnexpectedVa lue(Utf8StreamParser.java:1077) at org.codehaus.jackson.impl.Utf8StreamParser.
    • Since we have not the time to test both of the technologies I would be happy about some suggestions based on personal experience or on technical aspects.
    • I've got two applications: one runs wink-server on jetty and seems to be providing some JSON data just fine; one runs wink-client on jetty and receives the JSON data just fine.
    • Explore all reviews
  86. struts1
    • I am reading URL_http://struts.apache.org/release/2.2.x/docs/json-plugin.html [this] manual, and there are two questions I want to ask.
    • URL_http://struts.apache.org/2.2.3/docs/json-plugin.html [Struts2-JSON-plugin] allows you to exclude null properties CODESNIPPET_JAVA1 .
    • Add URL_http://struts.apache.org/release/2.2.x/docs/json-plugin.html [json- plugin] to the project dependencies with CODETERM4 .
    • Explore all reviews
  87. redmine
    • @Pete - good call on the results list being null.
    • I'm concerned I'm missing something to do with the inner classes.
    • Looks like Result and time_entries are mapped, but I dont see that mapping (@Serialized) here--------------------------- public class RedmineResponse { public List<Result> results;.
    • Explore all reviews
  88. liferay
    • There is no clear way to find Assets with certain Tags on them through the JSONWS.
    • I have error 404 if open URL_http://localhost:8080/tunnel-web/jsonws [ URL_http://localhost:8080/tunnel-web/jsonws ] on default Liferay installtion.
    • I have looked through all the CODETERM6 calls and nothing references any kind of CODETERM7 or CODETERM8 parameter.
    • Explore all reviews
  89. jpachube
    • I'd like to note that there exists a new Java library that you can find here: URL_https://github.com/cosm/cosm-java .
    • Access denied!
    • Method looks like this CODESNIPPET_JAVA5 .
    • So, looking more closely at the response body I thought maybe that there was something wrong with the data stream.
    • I delete all of the datastreams in the feed, create a new feed, and I get exactly ONE AWESOME HTTP:/1.1 201 - happy, right?
    • Yikes!
    • Explore all reviews
  90. com.google.guava
    • :-) .
    • I'll accept Tom's answer as the most informative/provocative.
    • Amazing, though I don't want Foo, just the native Object.
    • Explore all reviews
  91. javax.servlet
    • How are you compiling the code?
    • I'm trying to develop a servlet to send some JSON Objects but I get several exceptions.
    • JSON IS text, you have to parse the returned value.
    • Is there a problem with the file on the server (.jsp), at some other location (desktop: .html) or maybe with the database (mysql)?
    • If i miss some particulars tell me!
    • I'm posting the relevant code, the for loop isn't closed because the rest of the code is quite long, and this is the part where i'm getting the error.
    • Explore all reviews
  92. commons-httpclient
    • Please accept the answer if it helped you.
    • Below is the exception12-16 00:33:41.110: E/PostToApi(8513): org.json.JSONException: Value [{"3":"6.0.1.8","id":"1","2":"1","1":"1","0":"1" ,"PlatformID":"1","Version":"6.0.1.8","SoftwareID":"1"},{"3":"6.0.1.9","id":"2 ","2":"1","1":"1","0":"2","PlatformID":"1","Version":"6.0.1.9","SoftwareID":"1 "},{"3":"6.0.2.0","id":"3","2":"1","1":"1","0":"3","PlatformID":"1","Version": "6.0.2.0","SoftwareID":"1"},{"3":"6.0.2.1","id":"4","2":"1","1":"1","0":"4","P latformID":"1","Version":"6.0.2.1","SoftwareID":"1"},{"3":"6.1.0.0","id":"5"," 2":"1","1":"1","0":"5","PlatformID":"1","Version":"6.1.0.0","SoftwareID":"1"}] of type org.json.JSONArray cannot be converted to JSONObject I can't see anything wrong with this so any help would be appreciated.
    • @JitendraPatidar: these are the kay and values of your header dude.. please accept answers of you find useful..
    • Here client.execute(postMethod) means it will call execute method in HTTPClient class.. Can you post the code of HTTPClient class...
    • Please advise..
    • I'm having trouble with CODETERM1 transfer in Android.
    • Explore all reviews
  93. org.apache.camel
    • Really good, didn't know the onException !.
    • @adam Yes, missed it.
    • However, now some of my key,value entries will have an optional visibility that I need to put as a nested key value in my map.
    • camel serialize json in dead letter queue.
    • I tried changing my Map to have a value as an object i.e.,: CODESNIPPET_JAVA4 .
    • camel cased names starting with lower case "sampleFieldNameInJava") to a Json field name (i.e.
    • Explore all reviews
  94. org.jboss
    • Pretty print JSON output in JBoss RESTful service.
    • There are so many things wrong with what you just said.
    • My code looks something like: CODESNIPPET_JAVA1 .
    • Now, when I try to make a REST call to my web service, I get the following exception on the server side: CODESNIPPET_JAVA3 .
    • Everything is working perfectly without the String array.
    • The value of the parameter should be the fully qualified class name of your CODETERM6 .
    • Explore all reviews
  95. javax.xml
    • @Molly Usually you can do whatever you want with the values you receive and return anything you want, no matter if it's GET or POST.
    • The problem is that most of what I found is for webapps, in which the part of the configuration which I need is under the hood.
    • Yeah, sometimes it's the answers lower-down on the list that actually end-up working.
    • Have to go, sorry.
    • What does your JAXB-annotated model look like?
    • The problem was the we left the old JAXB provider hanging around with it's @Provider annotation.
    • Explore all reviews
  96. org.mongodb
    • Open the file as BINARY (not TEXT!)
    • Which line is it failing on?
    • 2)Once the parsing is over, save the json Object in the Mongo Document.
    • so i am send whole bunch of collection at same time, thats why i need store data, return from mongodb into one jsonstring, which still save in memory but less than what if store in java objects.
    • Now here's some real magic for y'all!
    • Too bad the javadoc site is still down (due to AWS outage earlier today) :(.
    • Explore all reviews
  97. org.codehaus.jettison
    • Please help .
    • I am getting the following Exception when I try to marshall the java object to Json CODESNIPPET_JAVA1 .
    • @Jason :-) 6 mins earlier...
    • Jackson does not depend on Jettison (or vice versa).
    • Your attempt is highly appreciated!
    • This is how URL_http://jettison.codehaus.org/ [Jersey] (JAX- RS reference implementation) converts POJOs to JSON by default.
    • Explore all reviews
  98. jsonassert
    • Or even simpler: JSONAssert.assertJsonEquals( "{foo: 'bar', baz: 'qux'}", {foo: 'bar', baz: 'xyzzy'}");.
    • If your code uses a Set that is converted to JSON for example.The following JSON compare would fail:JSONAssert.assertJsonEquals( "{foo: 'bar', list: [{test: '1'}, {rest: '2'}] }", "{ foo: 'bar', list: [{rest: '2'}, {test: '1'}] }");With the message:junit.framework.AssertionFailedError: : : objects differed at key [list];: arrays first differed at element [0];: objects differed at key [test];.
    • A test looks something like this: CODESNIPPET_JAVA1 .
    • With an expected value of _{id:1}_, this would still pass: _{id:1,moredata:'x'}_.)
    • Explore all reviews
  99. com.jayway.jsonpath
    • I have had the same thoughts, let's see if anyone has a clever idea..
    • The problem is in URL_https://github.com/jayway/JsonPath/blob/master/json- path/src/main/java/com/jayway/jsonpath/internal/PathTokenizer.java [PathTokenizer's] splitPath method.
    • Now also in Java!
    • when I have a value such as CODESNIPPET_JAVA1 .
    • Explore all reviews
  100. net.sf.flexjson
    • Greeeaaaat.
    • Flexjson is great, even when dealing with nasty backend developers ;-).
    • Thanks, but at the time the map sorting is already changed.
    • Does anyone have an idea what I'm doing wrong and how I can fix it?
    • Can anyone please help?Thank you After introducing ObjectFactory as suggested by chubbsondubs: CODESNIPPET_JAVA6 .
    • But now after looking at multiple examples I am at a loss, is it possible to deserialize directly into a list?
    • Explore all reviews
  101. restlet
    • 27 Sep 2012 - Restlet Framework 2.1.0 released!.
    • Here the exception returned by restlet server : CODESNIPPET_JAVA1 .
    • URL_http://restlet.org/discover/features [ URL_http://restlet.org/discover/features ] Supports asynchronous request processing, decoupled from IO operations.
    • For URL_http://static.springsource.org/spring/docs/3.0.0.M3/spring-framework- reference/html/ch18s02.html [Restful] I'd use URL_http://blog.springsource.org/2009/03/08/rest-in-spring-3-mvc/ [spring] , or URL_http://www.restlet.org/ [restlet] .
    • After a quick comparison, I found: Resting v0.7: resting-0.7-dev-release-android.jar - 1.3MB (all-in-one according tothe doc) Restlet v2.1.2: org.restlet.jar - 728KB (however must 1MB after adding httpclient extention and json extention) Spring for Android** v1.0.1: spring-android-core-1.0.1.RELEASE.jar 113KB + spring-android-rest-template-1.0.1.RELEASE.jar 186KB + gson-2.2.3.jar 194KB 493KB (without auth support, otherwise spring social will be a dependency) Please correct me if any miss.
    • Nothing that complicated but somehow even though the debug view claims the request object to contain the necessary content the RESTful webservice's response leads me to believe the HTTP header of the request was missing the content.
    • Explore all reviews
  102. com.google.protobuf
    • The best bet is to make sure this jar and the other protobuf jar end up in the same directory when you are running the app so they end up in the same classloader.
    • If play is started in production mode I do not have any errors.
    • Interestingly the class it says it can't find is different: CODESNIPPET_JAVA6 .
    • EDIT added information asked by the comments -- thanks!
    • URL_http://jabsorb.org/ [Jabsorb] also has good (de)serialization package.
    • Explore all reviews
  103. org.apache.axis2
    • Only the first key-value pair will be considered.
    • { "**root**" : ... } ) to fake the parser.
    • The value of the first key-value pair must not be an array.
    • I hope some of you can point me in the right direction.
    • I hope some of you can point me in the right direction.
    • Explore all reviews
  104. smartgwt
    • after site refresh the tree is displayed correctly: CODESNIPPET_JAVA3 .
    • after reparent b (drag b at folder c and drop it into c) all leafs gets folders: URL_http://i.stack.imgur.com/lLHdX.png [ URL_http://i.stack.imgur.com/lLHdX.png ] this is send to the server: CODESNIPPET_JAVA2 .
    • my code for the treegrid: public class FavoritesGrid extends TreeGrid { CODESNIPPET_JAVA4 .
    • the problem is when i try to reparent for example at begin the tree looks like: !
    • yes, SmartGWT expects a specific JSON format.
    • Also I hope that there is easier way than implement my own REST service.
    • Explore all reviews
  105. com.pubnub
    • @PubNub, please cf.
    • Morevoer, note that there is a performance penalty in this code, which can be avoided by following the answer to the question URL_http://stackoverflow.com/questions/20534862/how-to-efficiently-map-a-org- json-jsonobject-to-a-pojo/20710876#20710876 [How-to-efficiently-map-a-org.json .JSONObject-to-a-POJO?]
    • Official Bitcoin Wiki JSON Streaming API We will be working from the Bitcoin wiki feed instructions provided by Bitcoin official Wiki: URL_https://en.bitcoin.it/wiki/MtGox/API/Pubnub [ URL_https://en.bitcoin.it/wiki/MtGox/API/Pubnub ] - continue reading below the screenshot to continue.
    • [PubNub Developer Console]( URL_http://i.stack.imgur.com/ZZWZw.png ) To see the live real-time data feed we will be using, please checkout the following two links: 1.
    • Official Bitcoin Wiki JSON Streaming API We will be working from the Bitcoin wiki feed instructions provided by Bitcoin official Wiki: URL_https://en.bitcoin.it/wiki/MtGox/API/Pubnub [ URL_https://en.bitcoin.it/wiki/MtGox/API/Pubnub ] - continue reading below the screenshot to continue.
    • [PubNub Developer Console]( URL_http://i.stack.imgur.com/ZZWZw.png ) To see the live real-time data feed we will be using, please checkout the following two links: 1.
    • Explore all reviews
  106. sax
    • Haha, so true.
    • If there is little translation then it may be extremely tiny.
    • I have 3 sections (named arrays) in some huge file.It successfully parses first (a tiny one, under 1000 bytes).
    • For one object in values I call nextObject.put.
    • Nothing special.
    • Thanks //edit Thanks for the responses so far :) The xml will be between 3/4 lines to about 50 max (at the extreme).. .
    • Explore all reviews
  107. java.lang
    • Hi!
    • It says:FATAL EXCEPTION: main: java.lang.RuntimeException: Failed to invoke protected java.lang.ClassLoader() with no args at com.google.gson.internal.ConstructorCo nstructor$2.construct(ConstructorConstructor.java:94) at com.google.gson.inter nal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactor y.java:162) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.re ad(ReflectiveTypeAdapterFactory.java:93).
    • (JSONObject.java:171) I update the printout of json string before send the request, please see..
    • I'm sorry, I missed the fact that the numbers are represented as Strings.
    • @helios Oh!
    • What is the value of entity.getContent()?
    • Explore all reviews
  108. dropwizard
    • The endpoint looks like this: CODESNIPPET_JAVA1 .
    • How could I accept the different JSON representations on the endpoint, while keeping the validation codein the Resource as concise as something like CODETERM1 ?
    • and I'd like the validation machinery look into the CODETERM2 attribute, create an instance of the appropriate subclass, here e.g.
    • Explore all reviews
  109. castor
    • Or (perhaps the more fundamental question is) how do I support different versions of JSON bindings on the same set of Java classes?
    • Explore all reviews
  110. org.apache.activemq
    • When I retrieve them in PHP, the array that's created looks like this: CODESNIPPET_JAVA2 .
    • Explore all reviews
  111. org.springframework.build
  112. spring-framework-issues
    • Here is the link, please vote up : URL_https://jira.springsource.org/browse/SPR-7344 .
    • Explore all reviews
  113. com.simplegeo
    • I'm working on a coffee shop finder android app that makes calls to the URL_http://simplegeo.com [SimpleGeo] API to get each place of interest.
    • Explore all reviews
  114. io.netty
  115. jasperreports
    • When i debugged the codes, the _JsonDataSource_ contains values coming from the _JSON_ File.
    • Explore all reviews
  116. thrift-protobuf-compare
    • URL_http://code.google.com/p/thrift-protobuf-compare/wiki/Benchmarking [ URL_http://code.google.com/p/thrift-protobuf-compare/wiki/Benchmarking ] In this article I discuss the importance of re-cycling objects to improve serialisation times.
    • It looks 100x faster in Serialization/Deserialization URL_http://code.google.com/p/thrift-protobuf-compare/wiki/Benchmarking .
    • Explore all reviews
  117. bson4jackson
    • plz check URL_https://github.com/mongodb/mongo-java-driver/downloads [mongo- java-driver] , i thank it should contain the same facilities also look at URL_https://github.com/michel-kraemer/bson4jackson [bson4jackson] .
    • Explore all reviews
  118. zookeeper
    • I am getting the data from the Zookeeper node like this CODESNIPPET_JAVA1 .
    • Now I want to append one more key value pair at the end to the above JSON String.
    • This is the below key value pair I want to append - CODESNIPPET_JAVA3 .
    • Explore all reviews
  119. org.eclipse.jetty
    • Server URL_http://www.eclipse.org/jetty/ [Jetty] or URL_http://tomcat.apache.org/ [Tomcat] supporting Servlet 3.0.
    • Explore all reviews
  120. net.sf.corn
    • Please check URL_https://sites.google.com/site/javacornproject/corn-gate [ URL_https://sites.google.com/site/javacornproject/corn-gate ] project page to get detailed information.
    • Explore all reviews
  121. javax.jms
  122. javax.xml.stream
    • For example, it'll say something like "Now I'm looking at an open tag... now a close tag... now some chars... now a comment..." and unless you ask it for information about those elements it is hitting (get attributes, characters, etc.)
    • Explore all reviews
  123. protobuf-java-format
    • Interestingly the class it says it can't find is different: CODESNIPPET_JAVA6 .
    • Explore all reviews
  124. javafx
  125. jersey
  126. jsonij
  127. beanmapper
  128. org.apache.openejb.patch
    • You can try URL_http://openjpa.apache.org/jest.html [JEST] , it works over URL_http://openjpa.apache.org/ [OpenJPA] .
    • Explore all reviews
  129. javax.naming
    • Thanks @giampaolo finally I add a few line more to store information in ArrayList: //List of objects to persist List firstTranslationList new ArrayList(); List originalTermList new ArrayList(); List list new ArrayList(principalTranslation.values()); for (Item item : list) { firstTranslationList.add(item.FirstTranslation); originalTermList.add(item.OriginalTerm); } Thanks again :).
    • Glad you solved.
    • Explore all reviews
  130. org.apache.cxf
    • Please check the answer that I have provided.
    • thnx for the reply..
    • (There are a lot like Apache CXF, Spring MVC web services).
    • Go for it!
    • Need more information -- what kind of Java object do you want to operate on?
    • Explore all reviews
  131. achartengine
    • I am working on an android app in which i send an http response to a server and get a response in string which is in JSON format, now on the basis of this response i need to generate a stacked column chart using AChartEngine for different equipments.
    • Explore all reviews
  132. openjpa
    • You can try URL_http://openjpa.apache.org/jest.html [JEST] , it works over URL_http://openjpa.apache.org/ [OpenJPA] .
    • Explore all reviews
  133. voldemort
  134. stringtree
  135. org.glassfish.main.core
    • Therefore, I recommend that you follow a tutorial to deploy a Spring MVC app onto glassfish.
    • Something like a soap request?
    • Are the web-services being secured?
    • Do you think everything else seems fine, from the above code?
    • [Glassfish console]( URL_http://i.stack.imgur.com/jXZMn.png)!
    • When I try to output the variable that I just sent with GET, the WS gives back a NULL.In addition , Glassfish server console outputs this : INFO: Couldn't find JAX-B element for class java.lang.String INFO: Couldn't find JAX-B element for class java.lang.String .... INFO: Couldn't find JAX-B element for class java.lang.String INFO: Couldn't find JAX-B element for class javax.ws.rs.core.Response INFO: Couldn't find JAX-B element for class java.lang.String !
    • Explore all reviews
  136. org.simpleframework
    • The reading is jsut done with these two lines once the Example.class is correctly annotated : CODESNIPPET_JAVA1 .
    • Explore all reviews
  137. net.logstash.logback
  138. apache-wink
    • have u done apache wink service configuration.
    • Apache Wink Json REST Web Service.
    • How can I make Apache Wink to return something like CODESNIPPET_JAVA1 .
    • Explore all reviews
  139. java.beans
    • Can you also please give a good link for Java Bean Specification.Thanks in advance.
    • Finally, I got it working with Java Beans.
    • (i.e., the Map in ServiceResponse would look like CODETERM1 ).
    • Does the class follow regular JavaBean conventions with getter / setters, default constructor etc.. JacksonJsonConverter works with Java Beans.
    • I have a Jersey client that is successfully calling a REST service and populating the associated Java Beans CODETERM1 based on this code: CODESNIPPET_JAVA1 .
    • The reading is jsut done with these two lines once the Example.class is correctly annotated : CODESNIPPET_JAVA1 .
    • Explore all reviews
  140. jcouchdb
  141. jontools
  142. com.octo.android.robospice
    • However I cannot return and array (I've tried with the CODETERM4 too) from CODETERM5 , what would be the best workaround here?
    • Explore all reviews
  143. jmeter
    • CODETERM4 In the parameter values section in JMeter, I am passing something like this- CODESNIPPET_JAVA2 .
    • Explore all reviews
  144. com.nebhale.jsonpath
    • This implementation of JsonPath for Java seems fine: URL_https://github.com/nebhale/JsonPath .
    • This implementation of JsonPath for Java seems fine: URL_https://github.com/nebhale/JsonPath .
    • Explore all reviews
  145. net.sourceforge.argo
  146. org.jibx
    • Or (perhaps the more fundamental question is) how do I support different versions of JSON bindings on the same set of Java classes?
    • Explore all reviews
  147. com.google.gdata
    • I thought about two options (well, service is an overloaded term): everything that is mentioned in these JSON GWT tutorials is about the third-party services, like GData and Yahoo!
    • Explore all reviews
  148. io.restx
  149. net.sf.kxml
    • will have a look at that :) as we will need a mobile version at some point too.
    • Explore all reviews
  150. kxml
    • will have a look at that :) as we will need a mobile version at some point too.
    • Explore all reviews
  151. parboiled
  152. jooq
  153. ph.samson
  154. ognl
    • then JSON string will look like CODESNIPPET_JAVA3 .
    • other something like this ?
    • Explore all reviews
  155. ireport
  156. org.mediawiki
    • Edit: Here's what the relevant classes look like at the moment: CODESNIPPET_JAVA2 .
    • Explore all reviews
  157. org.jvnet.ws.wadl
    • Old question, but worth clarifying: The JSON Schema standard includes "hyper- schemas", which specify links/actions - including HTTP method, required data (specified as JSON Schema), and expected results.
    • Explore all reviews
  158. alfresco
    • BUT In BIRT Report in eclipse IDE no luck 1, in Scripted Data Source I put: CODESNIPPET_JAVA3 .
    • Explore all reviews
  159. jinahya
  160. jbox2d
    • Thanks, this may work... PbSerializer pbs new PbSerializer(); Builder obj pbs.serializeWorld(world); and then on the client if (next instanceof Builder) { this.world pbd.deserializeWorld((PbWorld)next);.
    • Explore all reviews
  161. org.gaelyk
    • The easiest process was to run the script above which downloaded the jars into the .groovy directory.
    • Explore all reviews
  162. proguard
    • Proguard is renaming multiple members to the same name 'a', which is perfectly valid in classfiles.
    • Explore all reviews
  163. hamcrest
    • You question is how to test the value in a excel file with hamcrest matcher ?
    • I have an array as follow: [[Disable,Enable,No,Yes][Joe,Bill,Doug,Kevin],[Red, Blue,Pink,Magenta],[One,Two,Three,Four]]; I need a hamcrest matcher that will match with an excel file that has name/value pair data in it.
    • Explore all reviews
  164. xmlrpc
    • Ok.. here's the green tick!.
    • Can someone please point me to a reference which gives a "full circle" example implementation of either (both with android client and java appengine back end) xmlrpc or json / rest ?
    • Any they'd get a credit in the software I'm putting together for this (for what it's worth).
    • this is not a SO question, this is a consulting job!.
    • Explore all reviews
  165. com.facebook.api
  166. morphia
    • I want to log incoming HTTP request data for a survey application and later planning to analyze the data by performing various kind of "rule matching" on that request data.
    • I want to basically store those headers in a meaningful way.
    • There are some standard headers with specific values, and there are some custom headers with custom values.
    • I want to treat standard headers like Referer,Cookie,URL etc as first class citizens for query the data later.
    • Explore all reviews
  167. mockito
    • Please accept the answer if it helped you.
    • Please accept the answer if it helped you.
    • My helper methods for the test case looks like: CODESNIPPET_JAVA3 .
    • Enough of talking, let's see the code itself: CODESNIPPET_JAVA1 .
    • Are there any cleaner approach instead of this testcase.
    • The CODETERM1 helper class for the test looks like: CODESNIPPET_JAVA4 .
    • Explore all reviews
  168. javax.xml.bind.annotation
  169. json-taglib
    • The interpretation of this is, you have an array named CODETERM5 , and in this array contains two objects, the first object has an attribute named CODETERM6 , with value CODETERM7 .
    • The second object has an attribute named CODETERM8 , with value CODETERM9 .
    • hey hi i didnt find in it can you give me link.
    • Explore all reviews
  170. json-smart
    • Here are some: URL_https://code.google.com/p/json-smart/wiki/Benchmark [Click] .
    • What about URL_http://code.google.com/p/json-smart/ [ URL_http://code.google.com/p /json-smart/] ?
    • Explore all reviews
  171. hsqldb
    • The "dataSource" bean properties should be updated like so: CODESNIPPET_JAVA8 .
    • Explore all reviews
  172. com.twilio
    • screenshot showing json added!
    • [enter image description here]( URL_http://i.stack.imgur.com/NyDxq.jpg)**Update this is the new screesnshot**!
    • Explore all reviews
  173. org.codehaus.woodstox
  174. woodstox
  175. caliper
    • Essentially, I'm interested in all complete CODETERM6 sections inside the wrapper CODETERM7 .
    • Explore all reviews
  176. de.l3s.boilerpipe
  177. org.jvnet.jax-ws-commons
    • Could you please say, may be you know the way to realize SOAP + EJB + JSON?
    • Hi, thanks to advance.
    • Explore all reviews
  178. apache-commons-jxpath
  179. spring-data-rest
  180. jxls
    • See URL_http://jxls.sourceforge.net/reference/collections.html [ URL_http://jxls.sourceforge.net/reference/collections.html ] If the problem is the json can't be read in the jxls excel property, just serialize it into collection of java bean first.
    • Explore all reviews
  181. tapestry
    • Good question, I'm using the Tapestry5 framework which comes bundled with Tapestry JSON.
    • Explore all reviews
  182. java.lang.reflect
    • Smart guy, voyager, you've just copied in the standard Java JSON classes' documentation.
    • Explore all reviews
  183. com.sun.grizzly
  184. org.apache.pivot
  185. com.sdicons.jsontools
  186. freebase-java-api
  187. sjsxp
  188. google-api-translate-java
    • Even if I append this JVM parameter -Dfile.encoding=UTF-8, without the platform encoding I didn't succeed in properly encoded streams.
    • Explore all reviews
  189. uk.ac.gate
    • Please check URL_https://sites.google.com/site/javacornproject/corn-gate [ URL_https://sites.google.com/site/javacornproject/corn-gate ] project page to get detailed information.
    • Explore all reviews
  190. org.apache.tomcat
    • Please first read some tutorials of Apache tomcat and java server technologies like servlet, jsp's ans web services.
    • Explore all reviews
  191. jax-ws-commons
    • specially if we want to convert an existing jaxb(SOAP) service to JSON by changing the endpoint only?
    • Explore all reviews
  192. jdbc
  193. ma.glasnost.orika
  194. net.sf.sojo
  195. javax.activity
    • (where jsonArray is the JSONArray and parseJson is the method in the java activity) the string that it sends looks something like this: CODESNIPPET_JAVA2 .
    • Explore all reviews
  196. com.liferay.portal
    • There is no clear way to find Assets with certain Tags on them through the JSONWS.
    • Explore all reviews
  197. jax-ws
    • Could you please say, may be you know the way to realize SOAP + EJB + JSON?
    • Hi, thanks to advance.
    • I have good experience with Jersey, which is the reference implementation of jax-ws.
    • Explore all reviews
  198. org.apache.xmlrpc
  199. genson
    • Ok fair enough!
    • Took 2 mins to get it working and it does what I need!.
    • Hmmm, Genson looks pretty handy.
    • Ah yes, pretty key that!.
    • Please show how you reload.
    • I hope however that you will also try Genson...
    • Explore all reviews
  200. org.kohsuke.droovy
    • consider groovy: URL_http://groovy.codehaus.org/gapi/groovy/json/JsonBuilder.html [ URL_http://groovy.codehaus.org/gapi/groovy/json/JsonBuilder.html ] (won't help you on the client side though) .
    • For what it's worth, that's exactly how URL_http://groovy.codehaus.org [Groovy] handles JSON objects.
    • Explore all reviews
  201. apache-io
    • Here's an example, which utilizes the excellent URL_http://commons.apache.org/proper/commons-io/ [Apache- Commons-IO-library] , for convenience: CODESNIPPET_JAVA1 .
    • Explore all reviews
  202. org.codehaus.stomp
    • My message creation code looks like this: CODESNIPPET_JAVA1 .
    • When I retrieve them in PHP, the array that's created looks like this: CODESNIPPET_JAVA2 .
    • Explore all reviews
  203. javax.json
    • Thanks for the answer, I added to my question to address your comments.
    • Nashorn will treat objects of such classes just like nashorn script objects.
    • Usual nashorn operations like obj[i], obj.foo, obj.func(), delete obj.foo will be glued to appropriate method call of this class.
    • Since both are obviously geared towards JSON, is there any planned interoperability between them (ie.
    • Explore all reviews
  204. javax.portlet
    • Now, I want to create Web Service using RESTful API in portlet environment.Please guide me How can i write the Web Service which will return JSON or XML data.
    • Controller @Controllerpublic class WebServiceTest { @RequestMapping(value "/myWebService/testing", method RequestMethod.GET) public String testMethod() { return "HELLO WORLD !
    • SUCCESS"; } } I am trying to Hit with localhost:8080:/myappname/myWebService/testing Getting no result.
    • hi, could you please paste the handler methods ?
    • Explore all reviews
  205. com.eclipsesource.minimal-json
    • "first_aired_iso" would be an entry in each map of the array, with a String for a value.
    • Here is the URL which calls the API CODETERM1 And here is the corresponding JSON response !
    • For reference, please check URL_http://eclipsesource.com/blogs/2013/04/18 /minimal-json-parser-for-java/ [ URL_http://eclipsesource.com/blogs/2013/04/18 /minimal-json-parser-for-java/] .
    • Explore all reviews
  206. jenkins
    • I assume you want to do this as part of Jenkins build process, please explain how exactly...
    • Explore all reviews
  207. partext
    • I get data like this (just a matrix of list) Toyota, Gas, Compact, Corolla Toyota, Gas, Compact, Camry Toyota, Hybrid, Compact, Prius Honda, Gas, Compact, Civic If needed I can REFORMAT THE DATA into two tables parentId parText answerId 1 Toyota 1 1 Toyota 2 1 Toyota 3 2 Honda 4 answerId level answerTextid answerText 1 1 1 Gas 1 2 2 Compact 1 3 3 Corolla 2 1 1 Gas 2 2 2 Compact 2 3 4 Camry Then I need to make it a tree(nested output like the JSON shows with parent/children - just like if you were creatign a file system directory) one other thign i would like to do is for each car have mileage as a varialbe ({answerid3:4, text=Corolla, mileage=38}.
    • Explore all reviews
  208. spring-social
    • Please help me converting json to java objects.
    • Hope my question is clear.
    • After a quick comparison, I found: Resting v0.7: resting-0.7-dev-release-android.jar - 1.3MB (all-in-one according tothe doc) Restlet v2.1.2: org.restlet.jar - 728KB (however must 1MB after adding httpclient extention and json extention) Spring for Android** v1.0.1: spring-android-core-1.0.1.RELEASE.jar 113KB + spring-android-rest-template-1.0.1.RELEASE.jar 186KB + gson-2.2.3.jar 194KB 493KB (without auth support, otherwise spring social will be a dependency) Please correct me if any miss.
    • Explore all reviews
  209. stax
    • Correct, I should have mentioned that one too.
    • Thanks for the answer and the extra effort!.
    • I've created a self-contained Maven project demonstrating this URL_https://github.com/zzantozz/testbed/tree/master/stackoverflow/8367671 -convert-xml-stream-to-json-stream [on-Github] .
    • Explore all reviews
  210. portlets
  211. jsonmarshaller
  212. javax.ws.rs.core
    • When I try to output the variable that I just sent with GET, the WS gives back a NULL.In addition , Glassfish server console outputs this : INFO: Couldn't find JAX-B element for class java.lang.String INFO: Couldn't find JAX-B element for class java.lang.String .... INFO: Couldn't find JAX-B element for class java.lang.String INFO: Couldn't find JAX-B element for class javax.ws.rs.core.Response INFO: Couldn't find JAX-B element for class java.lang.String !
    • My servlet initialization class is like this: import java.util.HashSet;import java.util.Set;import javax.ws.rs.core.Application; public class AddressBookApplication extends Application { CODESNIPPET_JAVA3 . }
    • Explore all reviews
  213. javax.swing
    • I've had good experiences with this, as long as the same version of the code was running on both ends, on the same version of the JVM etc!.
    • Explore all reviews
  214. xml-infoset
  215. com.google.code.guice