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

How can I save radiobutton group data in list?

I am making one quiz app. I have 10 questions list and each have four option. User select answer one by one. Then all answers save and give result in last screen. //This is a code of radiobuttongroup child: RadioButtonGroup( …
-2
votes
1 answer

How to write the value of one json property in one line?

It is necessary to write value of "Coordinates" property in json without hyphenation for the following lines, not using ToString() (without converting the value to a string). The desired result is shown below. { "Id": null, …
DonilZ
  • 5
  • 5
-2
votes
1 answer

Swift Parse JSON Error : No value associated with key CodingKeys(stringValue: \"_source\

I am attempting to parse the following json data: Below is my struct: struct Album: Decodable { var source: [Sourcet] enum CodingKeys: String, CodingKey { case source = "_source" } } struct Sourcet: Decodable { var nome,…
Krunal Nagvadia
  • 1,083
  • 2
  • 12
  • 33
-2
votes
2 answers

Android: simple adapter null pointer

I have an app that I want to retrieve data from my server with PHP Json and get method , I use simple adapter and Json downloader and json parser for this app , I have problem with my simple adapter to show my data in my listView , When I run my…
-2
votes
2 answers

How to store the data in array using JSON

Some problem in this code.I can 't able to solve .How to solve it? func loadFromWebserviceData(completion :@escaping (DataSourceModel?) -> ()){ Alamofire.request("http://www.example.com").validate(statusCode:…
-2
votes
1 answer

How to convert a JSON document to Java (parse integer numbers only)

I have searched everywhere and i can't seem to find a solution OR youtube video. Has anyone done this before? Any suggestions on how to go about this please.
oceanblu
  • 1
  • 1
-2
votes
4 answers

Not able to parse string to Json object in Js

json string is as below: "{\"d_obs\": 1999, \"f_name\": \"p_add\", \"f_str\": \"CCD\", \"d_left\": 48.9, \"d_pos_label\": \"YES\", \"left\": [48.9], \"cat\": [\"40/207, \"Shiva residency\", Near iscon mega mall, S.G. Highway\"], \"obs\":…
CHIN2
  • 185
  • 1
  • 1
  • 9
-2
votes
3 answers

How to match when array is null

This is my code. JSONObject jsono = new JSONObject(response); JSONArray jarray = jsono.getJSONArray("restaurents"); if(!jarray.equals("null")) { …
-2
votes
1 answer

How to fetch data from a nested array?

I have to fetch the value from an array nested inside another array. I can fetch values from the first array but not able to fetch values from the second array. I am able to read the values from the main array but I am unable to read the values from…
-2
votes
7 answers

JSON parsing error, data not displaying

I'm just starting to learn how to use JSON in Android. I'm supposed to make an app that display news title, section and author. I'm not really sure if the problem is in the parsing or something else but it keeps telling me there's no data. So can…
NA- Chan
  • 1
  • 3
-2
votes
1 answer

Get data from Feed

I am using AFNetworking for JSON parsing in my application.here is my response feed { "query": { "count": 1, "created": "2017-10-24T13:05:28Z", "lang": "en-US", "diagnostics": { "redirect": [{ …
user12346
  • 107
  • 1
  • 3
  • 11
-2
votes
1 answer

Images not loading from JSON file to Listview

The application works when i have hardcoded the URL into ReadJSON().execute( my url here); However after changing the url to textinput it will not load images. This is the expected result: https://i.stack.imgur.com/d2WkR.jpg Here is the entire file:…
Jessica
  • 15
  • 3
-2
votes
1 answer

jsonparser access fields by index

i have problem to access fields by index. this library https://github.com/buger/jsonparser example from https://github.com/buger/jsonparser: // Or use can access fields by index! jsonparser.GetInt("person", "avatars", "[0]", "url") My code: …
-3
votes
2 answers

Javascript Fetch api, JSON.parse() has syntax error despite JSON being correct

I am trying to make a low dependency JavaScript to show temperature of raspberry pi. The server sends a JSON as a response to get request and the Client shows a web page. The server is working as intended,I have checked in browser and using…
-3
votes
1 answer

Parsing JSON URL from API into readable text in Unity/C#

I'm trying to format JSON data from an API and store the results. The data consists of the local weather and provides accurate temperatures based on the current time. Below is the C# script of what I've tried so far: jsonDataController.cs using…
1 2 3
40
41