Questions tagged [jsonreader]
114 questions
0
votes
0 answers
Get a dump of a section (object) of JSON
I'm looking to dump, rather toString() a section of JSON that I want to store locally as a string, since it it is highly variable and not imperative for me to know the contents.
I'm using JsonReader for the…

lewicki
- 480
- 8
- 21
0
votes
1 answer
Postman json data needs conversion into a c# class i want to use anything i got back from my API to zillow call
So I used postman to retrieve API data from a website named Zillow, the problem I am running into now is I don't know how to use that data that received in a c# class. basically how to call my json, read it, and return into my class. For the record…

fay
- 13
- 9
0
votes
1 answer
Slow Performance on Android implementing Offline Dictionary using JsonReader
I am trying to implement an offline dictionary in a ebook reader app I am working on.
Let me explain the process. The dictionary is not part of the original app, rather will be downloaded in background. The original dictionary data is a json of…

Abhinav Bhadoria
- 61
- 8
0
votes
1 answer
Use a custom type parameter to auto map a JSON response
Can I pass a custom type as a parameter in a method and use it to read JSON from an external API? So if I had this:
trait ApiInfo
case class SunInfoResults(sunrise: String, sunset: String, solar_noon: String, day_length: Long, civil_twilight_begin:…

jesus g_force Harris
- 485
- 6
- 16
0
votes
1 answer
Read cached Json file as ByteArray with JsonReader
I cached a Json file as byte array and want to read it afterwards with the JsonReader.
However, the JsonReader takes a Reader as input parameter.
How can I convert me byte array to a Reader and is it worth doing so, or is there a straighter way of…

Poweranimal
- 1,622
- 3
- 12
- 16
0
votes
5 answers
Multiple JsonReaders reading different sections of JsonStore's data
say i have a json string like this:
Code:
{"Staff":[{"id":1,"name":"John"},{"id":2,"name":"Mary"},{"id":3,"name":"Sandra"}],"Students":[{"id":2,"name":"Peter"},{"id":3,"name":"Carl"},{"id":4,"name":"Hodges"}]}
(Note: If you want to see a better…

shfifty_five
- 1
- 2
0
votes
1 answer
JsonPath with JsonTextReader: Token at a Time
I am having an issue with JsonPath working differently when loading token (.Load) at a time using JsonTextReader versus loading the entire JSON using ReadFrom. Here is an example:
JSON: Path="[*].person" Method=SelectTokens(path)
[
{
…

Steven Mayer
- 641
- 1
- 6
- 19
0
votes
1 answer
Android JsonReader is closed when attempting to refresh content
Currently, I'm working on an app that shows contents of an JSON-based API in a listview. Fetching the data and using the adapter to fill the listview works fine the first time. But when I try to refresh the contents using Swipe to refresh, the first…

Bastian Wagner
- 23
- 5
0
votes
2 answers
Jsonreader parse error
I have a the following code:
reader = new JsonReader(new InputStreamReader(con.getInputStream()));
It returns the following JSON:
{
"results": [
{
"bioguide_id": "D000626",
"in_office": true,
"thomas_id": "02296",
…

Zxxxxx
- 397
- 1
- 5
- 16
0
votes
0 answers
when use Boost to handle json string, I get a core dump which say "stream is not available"
I use boost to handle a Json, it works well, but today I get a core.
here is the stack.
#0 0x0000000000517a19 in…

zawdd
- 311
- 1
- 3
- 12
0
votes
1 answer
Is there a publicly available list of possible exceptions that may come when using an ExtJS JsonReader?
I'm having trouble debugging an issue and looking for more information on the possible sources of error with it.

blueberryfields
- 45,910
- 28
- 89
- 168
0
votes
0 answers
How to read object name using JSONReader
I am developing an android application and i need to parse the json data from YQL…

Antroid
- 391
- 4
- 15
0
votes
1 answer
how to read a JSON object from a URL with JsonReader?
Without using additional JAR's or API's, strictly using javax.json.*, how can I read a JSON object from a URL?
The javadocs suggest that it's possible:
JsonReader jsonReader = Json.createReader(new StringReader("[]"));
JsonArray array =…

Thufir
- 8,216
- 28
- 125
- 273
0
votes
1 answer
get string from php json encode to android target api23+
I have a php file that generates data that must take to Android.
This is the file output .php
[{"item":"1","title":"Title of one","link":"qwerty1234"},{"item":"2","title":"Title of two","link":"qwerty1234"},{"item":"3","title":"Title of…

Riccardo
- 135
- 3
- 11
0
votes
0 answers
IOException when trying to fetch json data
I am using the following method to fetch my json data:
private JsonReader getJsonData(String link) {
HttpURLConnection urlConnection = null;
try {
URL url = new URL(link);
urlConnection = (HttpURLConnection)…

Alex Kombo
- 3,256
- 8
- 34
- 67