115 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
320
views
com.google.gson.stream.MalformedJsonException | Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
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 ...
0
votes
1
answer
26
views
Json entry Login reader
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": [
{
...
0
votes
0
answers
75
views
Drilling deep into JSON file with Gson JsonReader
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 ...
1
vote
1
answer
598
views
How to use GSON streaming to parse JSON with multiple top-level objects?
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()) {
...
-2
votes
1
answer
50
views
How to Deserialize a string which contains multiple object of same type in appended format [C#]
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 ...
1
vote
1
answer
114
views
Reading multiple parameters of JSON objects in java
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 ...
0
votes
1
answer
122
views
How can I read json data which has its tag/identifier in quotes?
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: &...
2
votes
0
answers
1k
views
How can I pass input stream to Utf8JsonReader in C#?
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(...
0
votes
1
answer
1k
views
Read a simple JSON file with GSON JsonReader
I thought this would be simple but it keeps crashing with InvocationTargetException at reader.hasNext().
File jsonInputFile = new File(root + "/dicts/phrases.json");
JsonReader ...
2
votes
1
answer
1k
views
How to load a json file which is having double quotes within a string into a dataframe in spark scala
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&...
0
votes
1
answer
422
views
Bug report ExtJS 7.4.0 Ext.data.reader.Json
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 ...
1
vote
2
answers
2k
views
How to read a Json file under the resources folder?
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(...
0
votes
1
answer
1k
views
How to read the value from json using JsonReader without knowing the json key
I am trying to use TypedArray to parse json.
My json will be the following:
{
"id":"112233",
"tag":"From server",
"users":{
...
0
votes
0
answers
289
views
Encountering JSONreader ClassNotFoundException despite including it on classpath
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 ...
-2
votes
2
answers
215
views
how to parse json where key is variable using scala play json reader?
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 ...