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 parsin gorg.json.JSONObject cannot be converted to JSONArray

My json is like this i want to parse newsitems to get tittle,url,contents,feelabel,url and feedlabel { "appnews": { "appid": 466560, "newsitems": [ { "gid": "2284879949551103234", "title": "These are the top…
Samed Sen
  • 9
  • 3
-1
votes
1 answer

android api json Parser

hi i have an app shows the online streamers from Twitch.tv and the data comes from request i send but i cant parse them this is my code public ArrayList ParseTwitch(JSONArray object, Context context){ ArrayList chanels = new…
user8966147
-1
votes
1 answer

How to parse this JSON data in swift

I'm having a problem while parsing json data from a web server. If anyone can help me with this, I would be very greatful. I'm using swift in an iOS application. Any references would be of great help as well. [ { "0": "M26177M21MUG", "1":…
-1
votes
1 answer

how to split up values in json with javascript?

i have some code json in here. [ { "id": "Node-1", "label": "Node-1", "image": "img/hosts.png", "shape": "image", "description": "Node-1:type: OS::Nova::Serverproperties: image: {get_param:image} flavor:…
riki yudha
  • 35
  • 1
  • 7
-1
votes
1 answer

Ruby on Rails JSON.parse "unexpected token" error

I am trying to parse JSON data in my Rails 4 application with JSON.parse. I keep getting this error: 757: unexpected token at ' AccessDeniedAccess…
Amrinder Singh
  • 5,300
  • 12
  • 46
  • 88
-1
votes
2 answers

How can I parsing Firebase JSON output

{ "-KrwJP0nYf1IUqY-YdXo": { "desc": "pdf desc 4", "downloadUrl": "https://firebasestorage.googleapis.com/v0/b/fireapp-a889c.appspot.com/o/PdfFile%2F1503177372?alt=media&token=36436f90-8a90-42f2-bf9d-35ac121b9ca7", …
spoiler
  • 11
  • 4
-1
votes
4 answers

Parse or view JSON data fields using JQ tool utility where field names have a "-" dash in the key name

I have a JSON data file (as shown below) and I'm trying to find field values using jq utility. It's working fine except for fields if the key name contains a - dash character in it. How can I get the values of "field-2", "field-three" or…
AKS
  • 16,482
  • 43
  • 166
  • 258
-1
votes
1 answer

Listview to display only one item clicked not all of the list

Here is my code of the populated listview adapter that I have import android.app.Activity; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import…
-1
votes
1 answer

I want to populate my WordPress website with a json file. How can that be done?

This is the json format: { "Album": [ { "name": "despacito", "lang": "spanish", "thumbnail": "some-url", "scrn":"some-url", "ourl":"some-url", "YearOfRelease": 2017 …
rsk
  • 46
  • 1
  • 8
-1
votes
1 answer

How can i convert JSON to ArrayList using Gson?

Hi I am very new for android and I want to convert my JSON object to ArrayList using Gson for this I wrote the code bellow, but this is not working. Please help me. How can I convert my JSON object to ArrayList ? JSON Response:- { "header" : {…
Krish
  • 4,166
  • 11
  • 58
  • 110
-2
votes
2 answers

How to pass variable to JSON without printing it as String

How to pass variable to JSON object and print it like JSON object? I simply want to pass variable value in JSON and print it like JSON which can also be used in console.table(obj) With Stringify: var name = "someName"; const json =…
Loizos Vasileiou
  • 674
  • 10
  • 37
-2
votes
1 answer

How to parse information from GitHub API JSON response?

I wanted to find a way to parse this JSON received from the GitHub REST API. I am trying to parse every description of all the repos in the response in Python.
ariv797
  • 43
  • 7
-2
votes
1 answer

Can we pass class name as parameter?

private void passClassName(String className) { JSONArray jsonArray = ; String dataSet = jsonArray.toString(); List testData = new Gson().fromJson(dataSet, new TypeToken>() {}.getType());…
Diptman
  • 374
  • 3
  • 14
-2
votes
2 answers

Getting the com.fasterxml.jackson.core.JsonParseException while parsing

My json requestBody is { "action": "DONE", "email": { "29794": "sue@gmail.com", "29795": "sue@gmail.com" } } where "email" is a Map(key,value)pair and when i am deserializing this using the…
-2
votes
1 answer

Parse json using ObjectMapper where json key contains json as a value

I have a class with such structure: class SomeClass { private String stringValue; private Collection collectionValue = new ArrayList<>(); private String jsonStringValue; private boolean booleanValue; } And…
Oleksandr Riznyk
  • 758
  • 1
  • 8
  • 19