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
1
vote
1 answer

Build Complex JSON payload from java classes

I would like to create following json payload from the java classes. Only one condition is there, Subgroup1 can be null, meaning group may/may not have subgroup1. Not sure how can it be done. Any help would be highly appreciated. Thanks in advance!…
Divya
  • 13
  • 1
  • 5
1
vote
0 answers

Parsing nested Json to table (with all permutations for nested attribute)

I have data in JSON format: { "orders":[ { "id":"1", "price":720, "customers":[ { "id":"10", "name":"customer A" }, { "id":"14", …
mosiek
  • 131
  • 1
  • 9
1
vote
1 answer

Google Script Twitter API JSON response reading error

I am using the twitter API to get data in Google Script. I am using the Twitterlib library (https://github.com/airhadoken/twitter-lib) to authorize and that part is working well. However the response I get from twitter, a json, when I parse it - it…
Prabhjot
  • 21
  • 1
  • 3
1
vote
1 answer

Validate Json schema C#

I'm trying to validate my json file but my validation doesn't work properly. Please help me to understand what is wrong. public static bool ValidJson(string jasonData) { string myJson = @"{ 'description': 'rehber', …
Nilay Yilmaz
  • 15
  • 1
  • 6
1
vote
0 answers

C# Error reading double, Unexpected token: StartObject when parsing json

I am getting json file from php script and it looks like this: [ {"data": { "yaw":0.0, "roll":0.0, "pitch":0.0 }, "name":"acceleration", "unit":"deg" }, {"data": { "yaw":0.0, "roll":0.0, "pitch":0.0 }, "name": "gyro", "unit":"deg"} ] So, I am…
jnkvcu
  • 11
  • 3
1
vote
0 answers

org.codehaus.jackson.JsonParseException: Unexpected end-of-input: expected close marker for OBJECT (from [Source: java.io.StringReader@6279cee3;

I am trying to GET JSON response from the URL, HttpURLConnection. Below is the piece of code I wrote but when I run the code, Sometimes I am getting a response, and other times I am getting " org.codehaus.jackson.JsonParseException: Unexpected…
Sandeep
  • 11
  • 1
1
vote
1 answer

Parse JSON root in a column using Spark-Scala

I've problems in order to transform the root of a JSOM a record in a data frame for an undetermined number of records. I've a data frame generated with a JSON similar the following: val exampleJson = spark.createDataset( """ {"ITEM1512": …
Jino Michel Aque
  • 513
  • 1
  • 4
  • 16
1
vote
1 answer

Like expression in JSON Path

I have a JOSN some thing like this { "Room" :{ "Book" : { "name" : "abc" }, "Book1": { "name" : "xyz" }, "Book3": { "name" : "abc123" }, "Tv" : { "name" : "zyc" …
1
vote
2 answers

Is there a way to parameterize the second argument of openjson

My json data looks like: SET @json='{ "_id": "4erutit8979044kd5", "ADDRESSES": { "1": { "VALIDATED": "", "TYPE": "billing", "RESIDENTIAL": "", "REGION": "ON", "POSTAL":…
Paras Singh
  • 383
  • 1
  • 3
  • 11
1
vote
1 answer

Not able to parse Array of string with single quotes around key value names

I am trying to parse an array to JSON.parse which have single quotes around the keys and values. But it is throwing following error. Uncaught SyntaxError: Unexpected token ' in JSON at position 1 The array which I am passing is : ["{'name':…
Mahipal
  • 344
  • 2
  • 13
1
vote
1 answer

How do I mock a computed method to stop json method error in my test (Vue-test-utils and vuetify)

I'm having an issue running a test on a large complicated Vuetify component with many smaller components, the important parts: ..... props: [ 'availablecats', 'avaliabledogs' …
1
vote
1 answer

How to store data in array from web api

I am using Xcode 11.3.1, Swift 5 and trying to show data in table view through web api. So after fetching the data I want to store "name" data in countryList. countryList is an array. URLSession.shared.dataTask(with: url!) { (data, response, error)…
1
vote
1 answer

Google App Script - Json response parsing

I'm using google app script to parse this json response. Issue On sheets I get only the values of the first metric not the second one But I want the values of the second metric as well. This is what i'm tryng to achieve Any help? Thanks
Mauro Bros
  • 91
  • 6
1
vote
1 answer

Convert JsonObject to ParseObject in Android

I am sending out ParseObject through push notification so that I may store them locally on the users device. How can make a ParseObject from the JsonObject which is coming through the notifications?
Tanzim Chowdhury
  • 3,020
  • 2
  • 9
  • 21
1
vote
3 answers

How to handle dictionary keys that do not exist in a loop?

I tried to parse json and use for loop in Python. obj is json and as you know it is like dictionary in list in dictionary in dictionary...and so on. So I parse json and make it as a for loop like this: all = obj['products'] for a in obj: …
J Reigh
  • 47
  • 1
  • 6