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
3
votes
4 answers

Provided data source did not match an array, Observable, or DataSource at getTableUnknownDataSourceError

I am new to Angular and Angular Material , Without Angular Materail it is working fine …
Pavan Kumar R
  • 31
  • 1
  • 1
  • 3
3
votes
1 answer

Read json object and find value in it

I have the following GET request: string url = @"http://api.flexianalysis.com/services/flexianalysisservice.svc/TechnicalAnalysisByCategory?clientid=___&category=forex&key=____"; HttpWebRequest request =…
Igal C
  • 45
  • 1
  • 9
2
votes
1 answer

How to wait in R for a complete JSON before using it

EDIT I have a Shiny app where I need to make successive requests to an API. Every request needs the preceding one to be completed to prevent the not all data was parsed (0 chars were parsed out of a total of 160 chars error. I use requests like…
Trichophyton
  • 625
  • 5
  • 21
2
votes
1 answer

Need to map the json to model in Swift

I have a Json response that i get from a API, the json looks like something like this { "data": [ { "_id": "63d9d2d57c0cfe791b2b19f6", "step": { "_id": "step1", "status":…
Sam4u
  • 23
  • 2
2
votes
1 answer

I need to fetch all the keys from jsonschema using buger/jsonparser

am having trouble understanding how https://github.com/buger/jsonparser , works. I dont feel the examples given are easy to understand, can someone help me a with good example for each of methods under the jsonparser package ? Am specifically…
2
votes
1 answer

How to get nested keys and values from Json including arrays

I want the ability to return Json's keys and values, especially nested ones. The nested keys will have their parent key as a prefix. Example: This Json: { "name": "Josh", "id": 23435, "Group": { "class": "ranger", "level": 60 } } Keys will…
elads11
  • 337
  • 1
  • 8
2
votes
1 answer

How to create Model class in flutter?

I have response like below {"statusMessage":"Get details…
2
votes
0 answers

Express does not accept null as valid JSON body (body parser middleware)

I using Nodejs v14.16.1, Express 4.17.1 Have set up the following parsing middlewares in my app: app.use(express.json()); Im trying to pass null as a body to my request: > PATCH /api/v1/trusted/erp/users/+359878206067/vehicles/CM0001AM/inspection…
Hairi
  • 3,318
  • 2
  • 29
  • 68
2
votes
1 answer

Remove sensitive-data from exception logs during serialize/deserialize JSON content while using com.fasterxml.jackson.databind.ObjectMapper

Context: We are using com.fasterxml.jackson.databind.ObjectMapper's readValue() method to convert JSON to Java POJO. When the JsonParseException or JsonMappingException occurs, the original data excerpts (JSON content) is being printed in the…
Ray
  • 21
  • 2
2
votes
1 answer

How to access list of dictionary in Django template

I am very new to Django and implemented a post-api call by watching couple of tutorials and one of the fields gets a list of dictionaries, want to access the key value pair in Django template, instead it is taking char by char, do I have to change…
2
votes
4 answers

JSON.parse(): SyntaxError: Unexpected token � in JSON at position 0

I have a json object which returns from the following PowerShell command: Get-Service -Name "name" | ConvertTo-Json -Compress > "/to/path/name.json" If i basically open the file in vscode it seems to be correctly formatted. After i read the file…
Florian Taut
  • 23
  • 3
  • 7
2
votes
1 answer

How to get location lat and long from json in flutter

I am retrieve value latitude and longitude from JSON in flutter.I try many thing but not git value of lat and long this is my json file { "results": [ { "geometry": { "location": { "lat": 19.2058593, "lng": 72.86612 } } } ] } I try > var myMap =…
androidleraner
  • 107
  • 1
  • 7
2
votes
0 answers

How to read JSON object from JsonToken.START_OBJECT to JsonToken.END_OBJECT using jackson JsonParser

I am using Jackson JsonParser to parse the json tokens one by one. The idea is to create a list of parameters that are passed to the HTTPServletRequest object as a JSON Post Body. The Body may contain simple types like integer, double, true, false…
KnockingHeads
  • 1,569
  • 1
  • 22
  • 42
2
votes
0 answers

.NET 5, ASP.NET Blazor return DataAnnotation errors instead of JSON Parser Errors

Is there a way to get the DataAnnotation Errors rather than the JSON Parser Errors? I have a model. Relevant fields, for example, are: [RegularExpression(@"^(?i)(true|false)$", ErrorMessage = "{0} must be either 'true' or 'false'")] public bool…
2
votes
2 answers

Flutter Complex Parsing Json Undefined getter "List'

I am trying to parse a complex json file into my application I am getting an error: The getter 'name' isn't defined for the type 'List'. I can't get the name of the route at my List of routes, but can get everything else. I don't understand where…
1 2
3
40 41
City State
{{ varEmp?.address.city}} {{ varEmp?.address.state}}