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

Parsing List of Json in Flutter

How to parse this inside ListTile>FutureBuilder in Flutter? I want to Show ListTile inside ListTile title should be docType only. Below is my model Class of Response of url. I generated this model Class from online Converter Tool by response i am…
Hanish
  • 47
  • 7
1
vote
1 answer

json multidimensional array to tree structure in javascript

I have this JSON response: [ {storeWebsites=[ {website_id=1.0, name=Default Store View}, {website_id=0.0, name=Admin} ]}, {storeGroups=[ {website_id=0.0, name=Default, id=0.0}, {website_id=1.0, name=Main Website Store,…
Mauro Bros
  • 91
  • 6
1
vote
1 answer

Parse JSON jq return only keys not values

lets say I have this: https://api.apis.guru/v2/specs/adyen.com/CheckoutService/64/openapi.json and I want to…
aDoN
  • 1,877
  • 4
  • 39
  • 55
1
vote
2 answers

how do i return a specific part of a JSON response?

I'm playing with JSON and API calls for the first time in javascript - specifically using the What3Words convert to co-ordinates API. I understand the basic tutorial as far as using a 3 word search to return a location as an object using the…
niche97
  • 83
  • 7
1
vote
0 answers

How to get First Value of JSON with Multiple Values for 1 Key (With JSON Parser for Google Sheets, on Yahoo Finance API)

I included the JSON Parser Module for my Google Sheets and it works very fine to Parse Json Modules from Yahoo Finance. I Struggle a Bit with the Financial, and Balance Sheets where 1 Key has more Values (for each Quarter or Year) and How to address…
1
vote
1 answer

asyncStorage with ReactNative: JSON.parse doesn't when getting object back

Hy everyone ! I've stored a simple object in Async Storage in a ReactNative app. But when I get it back, it isn't correctly parsed : all keys still got the quotes marks (added by JSON.stringify() when storing it) ... I store data like that: …
filip76
  • 9
  • 1
  • 3
1
vote
1 answer

'JsonParser' is abstract; cannot be instantiated 0

I'm trying to create a Kafka consumer in intellij but when I try to create the JsonParser it throws me an error : JsonParser is abstract; cannot be instantiated 0 private static JsonParser jsonParser = new JsonParser(); private static String…
DrGenius
  • 817
  • 1
  • 9
  • 26
1
vote
3 answers

Parsing JSONObject to access ID when there are multiple ID values (Java)

I am obtaining a JSON response from an API that gives me a list of call records formatted as JSON. I want to parse through the data and find the record ID, my trouble is that each JSON record has multiple ID's and I am not sure how to access the…
AnthonyH
  • 47
  • 7
1
vote
1 answer

JSON parse not working properly - Javascript

I am having a little trouble with parsing the data. When i add JSON.parse(this.responseText) and this.status == 200 on the if statement my code seem to not work. When I take them off it works and I get the alert that it's a success. Not sure what I…
1
vote
1 answer

Flutter JSON Array Parsing getting error : Exception: type '(dynamic) => xxx is not a subtype of type '(Map) => List' of 'f'

Sorry if It's repeated the question but I didn't found a solution. Error: Exception: type '(dynamic) => PostalModel' is not a subtype of type '(Map) => List' of 'f' What I have done: Calling API: Future
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
1
vote
2 answers

Flutter Error Class 'StudyList' has no instance method '[]'

I am trying to parse a JSON array to a List in my app, it worked with other model classes but I getting the error with this particular one only. I have used similar codes in other cases it worked but it's not working here. If you use just List…
1
vote
2 answers

JSONPath expression to concate two or more JSONPath values

I have below JSON data. I have JPath to read FirstName and LastName but to read both values using a single JSONPath expression is not getting. Can someone help me here to read the values for both the elements? I want to read like Name=Rob|Long…
Maheshwar Ligade
  • 6,709
  • 4
  • 42
  • 59
1
vote
1 answer

How to solve com.google.gson.JsonArray cannot be cast while parsing Json file in java

I am parsing json file in java first time. Where my json file structure is fixed one (I can not change this). I have gone through different answers, but didn't help with my json. I want list of all Group Name in one arrylist and Unit Name in another…
kodu_
  • 39
  • 1
  • 6
1
vote
1 answer

Why am I getting SON::ParserError trying to validate response using json_matchers?

app/models/author.rb: class Author < ApplicationRecord validates :name, presence: true, uniqueness: { case_sensitive: false } end …
1
vote
0 answers

Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference RecyclerView Adapter Error

Api (Interface) package com.example.openweathermap; import retrofit2.Call; import retrofit2.http.GET; import retrofit2.http.Path; import retrofit2.http.Query; public interface Api { String…
burhan
  • 11
  • 2