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

JSON creation by splitting a string?

So I have a situation where I am fetching some data from a database which I can't change/update. So my data from 2 columns coming like this: For example: Column1 Column2 Row 1: hello.how.are.you Gracie Row 2: hello.how.is.she …
Gurinder
  • 943
  • 2
  • 9
  • 19
1
vote
1 answer

How to parse json that contains "." in its key name

{ "key" : "value", "array.fruits" : [ { "key" : 1 }, { "key" : 2, "dictionary": { "a": "Apple", "b": "Butterfly", "c": "Cat", "d": "Dog" } }, …
1
vote
3 answers

Unexpected character ('=' (code 61)): while parsing JsonString

While parsing a JSONString (assigned=[util.TaskAudit@24c7b944]}) as follows: Map> auditTrailMap = new HashMap<>(); ObjectMapper mapper = new ObjectMapper(); mapper.configure(Feature.ALLOW_UNQUOTED_FIELD_NAMES, true); try { …
Joy
  • 4,197
  • 14
  • 61
  • 131
1
vote
3 answers

Parse Single Object Response

I am trying to parse this JSON but not getting any results in the log. Sample json: { "coach_details": { "coach_id": "1556", "academy_id": "1", "username": "testcoach@gmail.com", "first_name": "test", …
Andromeda
  • 230
  • 1
  • 7
  • 22
1
vote
2 answers

how to parse dynamic key response using retrofit

I am facing issue with parsing using retrofit call. this not duplicate question . I try too much googling also try many solution but it doesn't work in my case. so please do not down vote this question. I also make pojo classes but didn't get how to…
Hasu Sarkar
  • 59
  • 3
  • 13
1
vote
2 answers

Why JSON.parse ignore some data?

I'm trying to understand why when I'm parsing a JSON response which contains HTML the JSON.parse do not fail but ignore such data which I'm trying to fetch from this endpoint http://registry.npmjs.org/core-js. Here an…
Juan Picado
  • 1,823
  • 18
  • 33
1
vote
2 answers

How to extract specific data from json with multiple nodes?

Using java with selenium I have captured full json in my code IN my json there are two nodes "Service1" and "Service2" My requirement is to fetch the details of "Services1" node -->data node But i am not able to extract only Service1 with data…
akhouri
  • 69
  • 1
  • 8
1
vote
1 answer

Connect to server using NetClient with JsonParser only parses the first message

I'm writing a ClientConnector class using NetClient and JsonParser. Here are the steps I went into: Connect to server using NetClient Use Pump to handle backpressure Use io.vertx.core.parsetools.JsonParser to parse full JSON response objects Write…
Shvalb
  • 1,835
  • 2
  • 30
  • 60
1
vote
2 answers

SyntaxError: JSON Parse error: Unexpected identifier "object" when trying to parse json

I'm getting errors when trying to parse a string to json here is my String {"location": " Antoine Vallasois Ave, Vacoas-Phoenix, England", "stopover":true} and here is my javascript function function fillWaypoints(location){ var ob…
Nicky Larson
  • 43
  • 2
  • 7
1
vote
1 answer

Static member assignment and JSON parsing in F#

Is JSON parsing possible into a type data or any other form where I can access each individual item within F# using built-in Microsoft provided library? Following is an output generated by the following…
App2015
  • 973
  • 1
  • 7
  • 19
1
vote
2 answers

Not getting data for the first time in recyclerview;

I have FB, Google and normal login in my app.when I log in with FB or google everything is fine, but whenever I signup from the app and sign in instantly I am not getting data in CartActivity RecyclerView, but data is showing in postman or…
ansh
  • 21
  • 5
1
vote
0 answers

XML to JSon angular 4

I used an api that gives result in XML (follwing format) instead of JSON. YES
user3492620
  • 83
  • 2
  • 8
1
vote
1 answer

parse json object where keys start with a number using scala

I want to parse the following JSON object using Scala: val result = """{"24h_volume_usd": "9097260000.0"}""" normally I use: import net.liftweb.json._ case class VolumeUSDClass(24h_volume_usd:String) //<- problem 24h_volume_usd does not work val…
Vincent Claes
  • 3,960
  • 3
  • 44
  • 62
1
vote
3 answers

Unable to identify the perticular array of of my json using GSON. and add them to a list

Main Activity Code fragment ... i have tried responce.getObject but it didnot work... JsonArrayRequest request = new JsonArrayRequest( Request.Method.GET, URL, null, new Response.Listener()…
user9223597
1
vote
3 answers

Parse JSON and select a specific key in python

I'm trying to select a specific key in this code which is the 163, 203 & 13. Basically, each time, my function runs, I'll have one of these 3 codes stock in a variable and I can't figure out how to parse a specific element in a Json file. I'd like…
KenJ
  • 15
  • 1
  • 1
  • 4