Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
309 views

I'm encountering the following problem when sending an API request on my Android 10 device. The response to the request I sent to the API returns as follows: Actually, I am facing a crash issue ...
juhbert's user avatar
  • 45
0 votes
1 answer
26 views

I made a Json reader in python that reads data from a file named data.json but i don't know how to read an entry named Login from entry named Amazon { "Facebook": [ { ...
Matel Matel's user avatar
0 votes
0 answers
74 views

I'm working with JsonReader for the first time and I'm trying to grab values within an array. Basically what I've found is to drill deep down into a JSON file it seems like there is a ton of ...
elementmg's user avatar
  • 274
1 vote
1 answer
581 views

I've been looking for example Gson streaming API code, and I see a lot of this style: reader.beginObject(); while (reader.hasNext()) { switch(reader.peek()) { ...
NoazDad's user avatar
  • 620
-2 votes
1 answer
37 views

Let's say I have an Employee class. Employee { string Name; int Age } My string contains the data of different company's employee in a string. I want deserialize it as List of Company Info. I ...
monalisha saha's user avatar
1 vote
1 answer
114 views

Hi guys I am getting issue while reading this file can anyone suggest me how to read this file by using model name and tagline and also variant code of this model. I am new to reading in json using ...
Avish's user avatar
  • 11
0 votes
1 answer
121 views

I'm using NodeJS to fetch the NPM registry with the code below. import fetch from "node-fetch"; let url = "https://registry.npmjs.com/[package-name]"; let settings = { method: &...
javascriptdeveloper505's user avatar
2 votes
0 answers
1k views

So I am trying to read in a serialized JSON file. So a part of my code currently looks like this using (Stream input = File.OpenRead(openDialog.FileName)) using (BinaryReader reader = new BinaryReader(...
Connor's user avatar
  • 113
0 votes
1 answer
1k views

I thought this would be simple but it keeps crashing with InvocationTargetException at reader.hasNext(). File jsonInputFile = new File(root + "/dicts/phrases.json"); JsonReader ...
Hasen's user avatar
  • 12.5k
2 votes
1 answer
1k views

I have the below json file which i want to read into a dataframe but i wm getting error as the json file has double quotes within the string.for example: data:{ "Field1":"val"ue 1&...
Monika's user avatar
  • 55
0 votes
1 answer
419 views

first post on this account, how exciting. Sadly, the contents are less exciting. I have found a very simple bug in the reader.json function getResponseData. I want to have proper error handling in my ...
Frank Metis's user avatar
1 vote
2 answers
2k views

In my SpringBoot application I have to read a Json file at this path src/main/resources/mock/fileName.json. I done it in this way JsonReader jsonReaderStream = new JsonReader(new InputStreamReader(...
danpir's user avatar
  • 13
0 votes
1 answer
1k views

I am trying to use TypedArray to parse json. My json will be the following: { "id":"112233", "tag":"From server", "users":{ ...
Vijayadhas Chandrasekaran's user avatar
0 votes
0 answers
287 views

I am trying to figure out how to use the JSONreader package, I have downloaded the gson-2.8.6.jar file and am using the command: javac -classpath gson-2.8.6.jar Dummy.java This command works fine but ...
Eugene Tan's user avatar
-2 votes
2 answers
215 views

how can i access i4x-IITB-CS101-problem-33e4aac93dc84f368c93b1d08fa984fc_2_1 key and data inside this key ? I have never seen an example json reader that describes how the reader works when the key ...
user1512621's user avatar
0 votes
1 answer
366 views

I want to use Google Nuget package for shortening URLs. I included all the required files public string shortenIt(string url) { UrlshortenerService service = new ...
Shomaail's user avatar
  • 493
0 votes
0 answers
226 views

I'm trying to deserialize a large stream of Twitter Tweets. Everything is going well at around the first 200 deserialized tweets, but after that, the Deserialize method gets stuck and never proceeds. ...
Avi Meltser's user avatar
6 votes
2 answers
32k views

I'm trying to parse my json with the code below. I get the error: Error reading JObject from JsonReader. Path '', line 0, position 0. I thought this might be because my JSON was malformed, so I ...
hlh3406's user avatar
  • 1,398
1 vote
1 answer
2k views

I'm trying to read a file which is fetched from Opentdb and access data from only specific keys. I've tried all of the given methods which includes GSON and Json Simple but ended up having errors. ...
Rai Ansar's user avatar
0 votes
2 answers
4k views

I am trying to loop through the json file and find the value of particular json object. Here is my sample json: { "diagram":[ {"size":{"width":30,"height":20},"color":"blue","id":1}, ...
krishna's user avatar
  • 499
0 votes
1 answer
19k views

I am trying to parse two json files and convert them to Map<String, Object> using gson but while doing the above convertion using gson i am getting com.google.gson.stream.MalformedJsonException:...
krishna's user avatar
  • 499
2 votes
0 answers
2k views

I'm developing an application with the ASP.NET core Framework and Visual Studio keeps coming up with the error message: System.FormatException: "Could not parse the JSON file. Error on line number '...
Coziac's user avatar
  • 29
2 votes
0 answers
5k views

I am getting following error while opening android studio existing project first time ERROR: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $ I am getting this error ...
Dharmesh Dhameliya's user avatar
0 votes
2 answers
167 views

I keep receiving the FileNotFoundException error when trying to load my file into a JSONReader using an InputStream within my onCreate method. I've tested this code in a simple Java program and it ...
Adam's user avatar
  • 213
0 votes
0 answers
388 views

I'm using Newtonsoft.Json to read a .json file. I need to generically --> It should loop through all the datas where data/count may vary every time. //var map=new Dictionary<string,string>(); ...
meena priyanka's user avatar
1 vote
1 answer
3k views

I have this java method: public class ReadIssues { // Reads from a Json object protected JsonArray readJson() throws IOException { JsonArray issueArray = null; ClassLoader cl = Thread....
runnerpaul's user avatar
  • 7,564
0 votes
3 answers
146 views

I have downloaded the json files in my App Folder and I want to read that files from my App Folder to print specific values. Files are located like this : /var/mobile/Containers/Data/Application/...
Max's user avatar
  • 3
2 votes
1 answer
2k views

I have this json file that have a map of key-value pairs, but each value is a list of values { "car":["BMW", "AUDI"], "OS":["Mac", "Win", "Ubuntu"], "food":["Burger", "Taco"] } I ...
MSOUFAN's user avatar
  • 101
0 votes
1 answer
3k views

I’m working on splitting a SignalK JSON object into canonical JSON items representing each value. The original JSON looks like this: { "mmsi": "urn:mrn:signalk:uuid:5377770-4ee4-4a4b-3230-...
fredimx40's user avatar
2 votes
1 answer
574 views

I'm using JsonReader from gson, for parsing JSON, my JSON parsing is fine for all value except this one : "tags": [ "String1", "String2", "String3", "String4" ], ...
Vodet's user avatar
  • 1,519
0 votes
0 answers
437 views

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 ...
lewicki's user avatar
  • 479
1 vote
0 answers
1k views

It happened when I restarted my computer. I turn on android studio, but I can't start the emulator. Information:Gradle tasks [:app:assembleDebug] Error:java.lang.RuntimeException: com.google.gson....
Nasta's user avatar
  • 957
1 vote
1 answer
3k views

I want to do this with gson when reading from a json file: JsonReader reader = new JsonReader(new InputStreamReader( new FileInputStream(filename))); JsonParser jsonParser = new ...
TerryTsao's user avatar
  • 788
0 votes
1 answer
2k views

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, ...
fay's user avatar
  • 15
0 votes
1 answer
121 views

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 ...
Abhinav Bhadoria's user avatar
10 votes
4 answers
9k views

Using GSON in Java is there any annotation where I can indicate a field that it should keep it as a raw string even though it is an object. ? Or What would be the easiest way to achieve this? //This ...
Kenenisa Bekele's user avatar
0 votes
1 answer
597 views

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:...
jesus g_force Harris's user avatar
0 votes
1 answer
1k views

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 ...
Poweranimal's user avatar
  • 1,698
1 vote
4 answers
688 views

So I'm at lost how to do this: the goal is simply to make a call to the openweather api in java and have the result be returned on the console. I can't find any tutorials on how to do this, only on ...
Mehmet's user avatar
  • 95
1 vote
0 answers
67 views

I have 2 same projects that has same task, it is want to access web service from android with JsonReader, project 1 was running well and everything good there is no problem, project 2 was appearing ...
Indra Suandi's user avatar
0 votes
1 answer
2k views

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="[*]....
Steven Mayer's user avatar
0 votes
1 answer
350 views

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 ...
Bastian Wagner's user avatar
0 votes
2 answers
1k views

I have a the following code: reader = new JsonReader(new InputStreamReader(con.getInputStream())); It returns the following JSON: { "results": [ { "bioguide_id": "D000626", "...
Zxxxxx's user avatar
  • 417
2 votes
2 answers
3k views

I'm using JsonReader to parse some JSON data. It's a big array of elements of similar structure: [ { "type":"duel", "discipline":"leagueoflegends&...
paolostyle's user avatar
  • 2,018
0 votes
0 answers
272 views

I use boost to handle a Json, it works well, but today I get a core. here is the stack. #0 0x0000000000517a19 in std::for_each<std::reverse_iterator<__gnu_cxx::__normal_iterator<boost::...
zawdd's user avatar
  • 321
3 votes
1 answer
13k views

I'm a newbiew in java language. I want to get a value from a JsonObject and convert it to BigDecimal. I have the following code: JsonReader jsonReader; try { jsonReader = Json.createReader(...
Ricardo Rocha's user avatar
6 votes
2 answers
7k views

I am trying to parse the JSON files and insert into the SQL DB.My parser worked perfectly fine as long as the files are small (less than 5 MB). I am getting "Out of memory exception" when trying to ...
user1046415's user avatar
0 votes
0 answers
82 views

I am developing an android application and i need to parse the json data from YQL https://query.yahooapis.com/v1/public/yql?q=select%20%20*%20from%20%20yahoo.finance.historicaldata%20where%20symbol%...
Antroid's user avatar
  • 401
3 votes
2 answers
67 views

{ places: [ { id: 1, place:"America", name: "Robert", age: "22", place_lat: "10.017", place_lon: "76.344" }, { id: 1, place:"America", name: "Albert", age: "22", place_lat: "10.017", place_lon: "76....
Visal Varghese's user avatar
1 vote
1 answer
504 views

I have following json data:- { "store": { "book": [ { "category": "reference", "author": "Nigel Rees", "title": "Sayings of the ...
Galet's user avatar
  • 6,379