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
2 answers

How to do JSON parsing in Unity?

I have a string variable that contains The following JSON in it. [ { "MeterLookup_TblRefID": 233, "NetworkLookup_TblRefID": 3, "Network_Name": "SS-43 SEWA SCADA (Command Center)", "Longitude": 55.403544, …
Savad
  • 1,240
  • 3
  • 21
  • 50
1
vote
1 answer

How to make a Json parse without changes in Google Apps Script

I make a request to Go to Webinar API in Apps Script and the response is something like this: {"joinUrl":"https://example.com","asset":true,"registrantKey":3669516009270899211,"status":"APPROVED"} When I make a JSON.parse i get something like…
Julio
  • 355
  • 1
  • 4
  • 14
1
vote
0 answers

Insertion of data to PostgreSQL using Google Trends API

I have fetched data from Google Trends API and now I am trying to insert it in the database but at a time only one row is being inserted and I want to insert all the rows into the database. try { var res = await…
Shailesh Chauhan
  • 204
  • 1
  • 12
1
vote
1 answer

Why nlohmann does not release memory

I am using nlohmann library to parse JSON codes. We have two problems: 1- Why nlohmann use huge memory to parse data 2- After call parser in a function locally like below code it does not release memory. My JSON data size is about 8MB and the parser…
1
vote
2 answers

FHIR's General-Purpose Data Type Object Parsing From JSON in .NET Core

I am using Hl7.Fhir.R4 library in my project which is an API Wrapper (in ASP.NET Core 2.2) around Azure API for FHIR. In a View Model, I declared a FHIR Element (FHIR's General-Purpose Data Type) as a property. Example: public class MyPatient { …
1
vote
1 answer

How to parse, or create pojo from following json array?

I want to parse the following JSON and work fine using my code like string tokenizer, but I want to parse with any standard method (e.g. GSON.. etc), or how to create POJO for it, using this, so how to resolve this issue, Thanks JSON [ [ …
Attaullah
  • 3,856
  • 3
  • 48
  • 63
1
vote
3 answers

how to fetch nested JSON values in typescript

I am trying to fetch all the state parameter values for each id - 2434,78657.Kindly help me out how to do this in typescript.As it is a nested JSON, I am unable to fetch these values JSON Request: { …
1
vote
2 answers

Extracting JSON value in Javascript with special character \"

How can i extract text from the below json, As it contains \" it is giving me an undefined { "answers":[ { "questions":[ ], "answer":"{\"text\":\"I am Ellina. I can't believe you forgot my name\",\"speech\":\"I am…
Vinay Jayaram
  • 1,030
  • 9
  • 29
1
vote
1 answer

Drop duplicate attribute in json parsing in spark scala

I am parsing json file and I have one attribute which is coming for twice. So I want to drop one the attribute and so I can avoid ambiguous error. Here is the sample json. For example, address1 and Address1 has same value but only difference is…
Babu
  • 159
  • 2
  • 14
1
vote
2 answers

key check JSONObject org.json.simple in JAVA

Key convert into jsonobject using org.json.simple. I have tried a number of ways to did it but all failed 1st way JSONObject name1 = (JSONObject) jsonObject.get(key); error : cannot convert java.lang.string to org.json.simple.json.object 2nd way…
Danish
  • 257
  • 2
  • 12
1
vote
6 answers

how to form json obejct

I want to convert the following JSON using JsonObect and JsonArray but not able to do so. { "query": { "bool": { "must": [ { "match": { "customer.partnerName": "Synapse" } }, { …
1
vote
2 answers

How to parse this JSON using a JSON Condition Expression?

I have this sample JSON and want to write a parser to get the desired output. Sample JSON: { "prizes": [ { "year": "2018", "category": "physics", "overallMotivation": "\"for groundbreaking inventions in the field of laser…
juniorbansal
  • 1,249
  • 8
  • 31
  • 51
1
vote
1 answer

Parse JSON with Decodable return empty Model

I'm trying to load local JSON file and parse using model which conforms to Decodable protocol. JSON file: [ { "body": {}, "header": { "returnCode": "200", "returnMessage": "Successfully Received", } } ] Response Message…
Harshal Wani
  • 2,249
  • 2
  • 26
  • 41
1
vote
1 answer

How to solve the MismatchedInputException: Cannot construct instance of `java.util.HashSet` exception

In my program I tried to update the user's email. But it gave me an exception saying nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of java.util.HashSet But when I update a user with…
Samasha
  • 369
  • 1
  • 5
  • 16
1
vote
1 answer

FATAL EXCEPTION: AsyncTask #1 Relating to java.lang.NoClassDefFoundError

I did the same thing on what my professor taught us, but when i try to do it in my own computer (which i did in our school computers) I'm having a error with AsyncTask that is related with java.lang.NoClassDefFoundError, But I'm a little bit…
Peter Festejo
  • 97
  • 2
  • 2
  • 9