Linked Questions

2 votes
1 answer
974 views

Say I have the following json string: { "name": "Foo" "pic1": "some pic 1", "pic2": "some pic 2", "pic3": "some pic 3", ... "picn": "some pic n" } I need to create following ...
corvax's user avatar
  • 1,145
133 votes
5 answers
259k views

I have a Java class MyPojo that I am interested in deserializing from JSON. I have configured a special MixIn class, MyPojoDeMixIn, to assist me with the deserialization. MyPojo has only int and ...
tacos_tacos_tacos's user avatar
44 votes
2 answers
33k views

To deserialise JSON string to a list of class, different ways listed at StackOverflow question Type 1 (docs link): List<SomeClass> someClassList = mapper.readValue(jsonString, typeFactory....
Arun's user avatar
  • 1,799
1 vote
3 answers
11k views

I need to pass both FormData and JSON object in an ajax call, but I get a 400 Bad Request error. [artifact:mvn] org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver - Failed ...
Lucky's user avatar
  • 17.4k
1 vote
1 answer
3k views

There are some similar questions here and here, but they don't quite match my situation. My JSON string consists of an object with an array: { "data": [ { "id": 1, "title": "Sample ...
houcros's user avatar
  • 1,020
0 votes
2 answers
2k views

A variable called wrongAnswers which is an array of javascript objects is generated on the client. It has the form wrongAnswers = [ {"wrongAnswer": "Manzana", "wrongQuestion": "apple"}, {"...
rurounisuikoden's user avatar
-4 votes
2 answers
2k views

So this is my sample Json Text, { "Date": [ 1545, "20 January 2014" ], "docText": "ABCD", "docSource": "", "docID": 99, "docDate": "", "Date": [ 1930, "1995/11", "...
user3712390's user avatar
0 votes
1 answer
1k views

I'm writing a program that receives a Json String, converts it to Java object and prints it out to the screen. Pretty simple stuff, but my problem is getting the program to read the Json String. ...
Almanz's user avatar
  • 89
1 vote
1 answer
2k views

I have a json String that's a list of a list of strings, and need to convert it to objects of class List<List<String>>. Here it says how to convert from string to a list, but it doesn't ...
ps0604's user avatar
  • 1,207
-3 votes
1 answer
1k views

I have a String with the following value: { "keyA": { "ID": "123", "Name": "TESTA", "Mobile": "1111" }, "keyB": { "ID": "456", "Name": "TESTB", "Mobile": "2222" } } ...
Senthil RS's user avatar
0 votes
2 answers
873 views

I have jsonobject in list which is of type string and the list contains two json object but size is giving 4. JSONObject which are stored in list are- [{"size":"S", "id":11}, {"size":"8", "id":19}] ...
Tani's user avatar
  • 93
0 votes
1 answer
806 views

I have a problem with a very large JSON file that is too large to use ObjectMapper.readValue() into a JsonNode. I would like to use the solution from Out of memory error while parsing a large JSON ...
Kyle's user avatar
  • 584
1 vote
1 answer
384 views

I am beginner. I have MongoDB running. My task is to insert Student.json file on to MongoDB through java code and not through mongoimport. Student.java public class Student { @Id private ObjectId ...
Shreyas Rao B's user avatar