Questions tagged [jsonparser]

Questions concerned with parsing JSON files using either built-in, third-party or custom built JSON parsers. Questions about implementing JSON parsers are valid too.

Questions concerned with parsing JSON files using either built-in, third-party or custom built JSON parsers. Questions about implementing JSON parsers are valid too.

607 questions
2
votes
0 answers

Transformation from JSON like DSL to qml

We defined our own DSL for describing UIs which is JSON based. { "widget": { "type": "label", "left": "30px", ... } } We do not support any parent child relationships, therefor the…
2
votes
1 answer

Trying to parse a JSON array in Unity C# but it returns null

Here is my JSON file: [ { "name": "An item" } ] Here is my helper class: public static class JsonHelper { public static T[] FromJson(string json) { string newJson = "{ \"array\": " + json + "}"; …
Hyrial
  • 1,728
  • 3
  • 15
  • 27
2
votes
0 answers

How to parse json to map having some special characters

Unable to parse json with special characters. Json Structure is as follows - { "START_TIME":"03:45", "SHIFT_START_TIME":"07:00 AM", "SELECT_STORE3_BO":"000951, Test store 20", "SELECT_STORE5_BO":"26482, TAMPA PALMS", …
2
votes
1 answer

Parse JSON string inside activiti bpmn

Greetings to the community! I am using Alfresco 6.0.0 Community edition with the embedded Activiti engine. I am creating many kind of different processes/tasks through .bpmn files and now I would like to somehow achieve the following scenario: 1)…
NickAth
  • 1,089
  • 1
  • 14
  • 35
2
votes
1 answer

How to enforce quotes on property names on JSON .NET

I am using Json.NET to Parse some JSON I receive to an endpoint I have on my application. I want the following JSON object to fail parsing since its property name does not have quotes on it: { foo: "bar" } JToken.Parse() says it is valid JSON.…
paddingtonMike
  • 1,441
  • 1
  • 21
  • 37
2
votes
1 answer

Capture json response value in karate api

How can I retrieve numeric value from json response in Karate API? Here I want to retrieve 41651625424 this value in a variable as I have to pass this as input in another request body {"items":{'41651625424': {itemCore: {partNumber: '1234567',…
sam
  • 289
  • 7
  • 19
2
votes
3 answers

How to get a value from nested arrays? JSON

I have a problem with parsing tickets. There is a JSON link that contains the following data: json…
silenoz
  • 47
  • 1
  • 5
2
votes
1 answer

Qt - JSON with comments

I know that C/C++ style commenting (// ..., /* ... */) in JSON is invalid but because people with something called sense (don't know what that is) intentionally made ways to use invalid JSON e.g JSON minify or RapidJSON. Because Qt comes with it's…
goulashsoup
  • 2,639
  • 2
  • 34
  • 60
2
votes
1 answer

Jackson: How can I take full JSON string, which is parsed during serialization or deserialization

Does anyone know if I'm able to take full JSON string, from below objects during custom serialization or deserialization: JsonParser jp DeserializationContext ctxt SeserializationContext ctxt I'm using JACKSON on rest API. Object source =…
PDS
  • 562
  • 3
  • 13
  • 27
2
votes
2 answers

How to provide S3 file reference to JSON Parser

I have tried using below ways and both are giving error as "java.io.FileNotFoundException" JSONArray a = (JSONArray) parser.parse(new FileReader(bucket+"/"+key)); and JSONArray a = (JSONArray) parser.parse(new FileReader(http://S3URL...);
2
votes
1 answer

Mongo Java Driver 3.6.1 - How to parse a json array structured String to BasicDBList

When I use MongoDB 2.x.x I used (BasicDBList) JSON.parse("[]") to parse the string data to Document array. But the latest MongoDB driver says this is deprecated and the BasicDbObject.parse("") only converts to BasicDBObject. Here is some code…
Ajanthan
  • 198
  • 2
  • 10
2
votes
1 answer

Rapid json parser returns null when it tries to parse '\n' character

My Input string is like this: std::string temp = "{\"key\":\""+ message + "\"}"; For Eg: message can be like this: "Stack \n Overflow" message can be anything. It can contain escape sequence characters also. I expect this is a valid JSON and if I…
Akhilesh
  • 31
  • 6
2
votes
4 answers

Converting from JSON to XML using c#

i have kind of wired requirement for converting JSON to xml. we have an API that returns the JSON response as below. { "status":"Error", "errorMessages":{ "1001":"Schema validation Error" } } We want to convert this JSON to XML as…
abhi pm
  • 41
  • 1
  • 7
2
votes
0 answers

How to save har file in json extension

I'm trying to save har file in json format. ?However i'm getting parsing exception when i do that. I'm able to save in .json format but when i check the json format online i'm getting parser error. Any advise on this would be helpful. Please find my…
syndy1989
  • 403
  • 10
  • 25
2
votes
0 answers

How to get HTML content as JSON value in spring boot

I am developing an API , where I receive some article related data as a POST request. The receiver I have as following: @ApiOperation(value = "Add a new Article", produces = "application/json") @RequestMapping(value = "/create", method =…
Arpan Das
  • 1,015
  • 3
  • 24
  • 57