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

JSON parsing in swift. What's the best structure parse a json file

I am trying to parse a json file that looks like this: { "MyApp": { "pro1" : { "enable": true }, "pro2" : { "enable": true } }, "pro3" : { "pro4" : true, "pro5" : true, "pro6" : true, "pro7" : true, …
Anna
  • 443
  • 9
  • 29
-1
votes
1 answer

How i can get the parse the json response such that i can get only keys with Java?

How can I parse the JSON response such that I can get only randomly generated keys from JSON like this "6e38fad50-39a0-11e9-9511-0242ac110002" available in JSON? Response: { "results": { "6e38fd50-39a0-11e9-9511-0242ac110002": { …
-1
votes
1 answer

invalid value around character 0 in swift

I am developing an iOS application where it uses an API to get the user's information. This is the response I am getting back from the server which is a JSON object: { "status": { "code": 200, "message": "OK", …
-1
votes
2 answers

Get value from object by key in java

I am getting object in the response of entityManager.find method. and i want to get values from that object by passing key. but i din't get any success. For example :- my entity :- @entity class Test (){ public Long id; public String name…
Harish Bagora
  • 686
  • 1
  • 9
  • 26
-1
votes
1 answer

Need to validate json and do not want to use jsonparser because it is outside of python

I have a JSON and I want to validate it. Do we have something in python I want to validate to put some condition like Required or Optional {"Id": 12345,…
-1
votes
1 answer

Android New Version Available - App Update Dialog Using Json From Own Server

I want to show dialogue when new version is available. I want to make a json file into my web server, and I will manually update my app version in json file. and my app will parse this json file and will notify users and showing dialogue box to…
-1
votes
1 answer

Get value in Nested JSON/JTOKEN using LINQ

I am new to LINQ queries and would like to know if what I am trying to achieve is possible via LINQ query. So, I have a JSON doc as below. I am trying to get all the values that match the "$type" and return me the directory path and the value for…
learntogrow-growtolearn
  • 1,190
  • 5
  • 13
  • 37
-1
votes
1 answer

"/usr/lib/python3.6/json/init.py", line 296, in load return loads(fp.read(), MemoryError

I have a large json file (2.4 GB). I want to parse it in python. The data looks like the following: [ { "host": "a.com", "ip": "1.2.2.3", "port": 8 }, { "host": "b.com", "ip": "2.5.0.4", "port": 3 }, { "host": "c.com", "ip":…
user9371654
  • 2,160
  • 16
  • 45
  • 78
-1
votes
2 answers

How to parse JSON response Array of object, where array is without key name

I am trying to parse json result without array name. Here is my json response: [ { "Id": 2293, "Name": "Dr.", "Active": true }, { "Id": 2305, "Name": "Mr.", "Active": true }, { …
Harry
  • 369
  • 2
  • 17
-1
votes
2 answers

Parsing nested JSON via Google Scripts

I've been struggling to try to find a way online to parse JSON output from an API request successfully. I'm looking to parse the "ResultData" section of the following API JSON Example…
-1
votes
1 answer

Why doesn't JSON parsing fail with completely different type passed to Decode()?

I have the following data structures which I'd like to parse from an API: type OrderBook struct { Pair string `json:"pair"` UpdateTime int64 `json:"update_time"` } type depthResponse struct { Result OrderBook…
Patryk
  • 22,602
  • 44
  • 128
  • 244
-1
votes
1 answer

Youtube ID JSON Integration

Hello can some one please explain me the below code of video id of Youtube integration android Json for Video ID. String videoID = (String) ((JSONObject) ((JSONObject) jsonObject.getJSONArray("items").get(0)).get("id")).get("videoId");
Deep Adhia
  • 382
  • 4
  • 11
-1
votes
3 answers

Recyclerview Shows Empty After JSON Parsing

I have to display a list of items on recyclerview from a remote network call. I have initialized the recyclerview and set it's layout manager and adapter properly but the list doesn't show. Here's my adapter class: public class DashboardAdapter…
Andromeda
  • 230
  • 1
  • 7
  • 22
-1
votes
1 answer

How parse json with unique identifiers into tabular format?

Here is a json file I am trying to parse. I have a bunch of such files in a folder and I need to parse them into tabular format. { "block-v1:SampleData-type@chapter+block@14a0423ddf4a4d90926fb348e86a6232": { "category": "chapter", …
pooja kosala
  • 29
  • 3
  • 8
-1
votes
1 answer

how to parse array with format Array ( [return] => in PHP

i have the output format api like this: Array ( [return] =>
ID1901422741 2017/11/30