Skip to content

Tag: json

valid JSON response issue [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 7 years ago. Improve this question I hav…

Unexpected character (“) at position 2 JSON Parser (Java)

Here is my JSON File beginning: And here is my Parser: I am trying to parse through this JSONfile using a FileReader and JSON and JSON-Simple libraries. I think my format of my JSON file is correct but I don’t know how to get past this error: Answer Your JSON is not correct. Kindly check It should be so…

jsonschema and date type

I’m just getting started with jsonschema and an example under “Using jsonschema2pojo within your Java project (embedded)” in https://github.com/joelittlejohn/jsonschema2pojo/wiki/Getting-Started having in mind data types of jsonschema listed here https://developers.google.com/discovery/v1/ty…

Logging JSON-RPC calls using jsonrpc4j

I’m sure that if you have used jsonrpc4j (outside a spring container) you will recognise the following standard pattern. I am trying to create a log file containing all the JSON requests and JSON responses. i.e. I’d like to log the incoming JSON RPC request before it is deserialised and log the ou…

Resolve DBRef into Json

I’m getting the following error in a Normalized Data Model structure in MongoDB: It’s caused by this line: Specifically the toJson() part. I have a DBRef Object in my Document, so I can reference a Document from another Collection. An Embedded Document Structure is not option. So how can I fix thi…