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
vote
3 answers

Uncaught SyntaxError: "[object Object]" is not valid JSON at JSON.parse ()

Uncaught SyntaxError: "[object Object]" is not valid JSON at JSON.parse () vendors~main.chunk.js:32926 The above error occurred in the component: at Home (http://localhost:3000/static/js/main.chunk.js:1640:99) at…
1
vote
1 answer

JSON parsing error - No value associated with key CodingKeys

So, I have tried looking for the answer, I have seen many questions similar to mine. I have tried adding an enum codingKey, I have tried reworking the JSON, but nothing seems to work. I know it's probably something very simple too. (I'm a noob.)…
Kiarra J.
  • 39
  • 7
1
vote
0 answers

JSON parse error, unable to deserialize value of type `java.time.LocalDate` in STS 4.15.3 windows version

I'm new to this tool and I'm having trouble with this specific issue. I looked for an example But could not find something similar, better, I found a possible solution, but in my case It doesn't work. I have this narrow project that resembles our…
1
vote
0 answers

How to generate dynamic JSON from database table records in Java 8

I have below database table having records, table rows can have various string records, pattern of records is like showed in table. "domainVal", "idVal", "versionVal" - these are constants no dynamic but all other keys are dynamic, can have any…
1
vote
1 answer

JSON object is getting removed with remove method in JSON file instead of JSON array

I am trying to remove JSON array from a JSON file using org.json library I am trying to remove webAutomation JSON array from the JSON file as follows { "instructor": "Test_Instructor", "url": "www.google.com", "services": "Test…
nikhil udgirkar
  • 367
  • 1
  • 7
  • 23
1
vote
1 answer

Blazor - Split data from JSON and display in HTML

Using the below code to parse value from JSON and display it in HTML in one of my Blazor project. But struggling to split value of 'Ring_Position' from JSON and display it into two parts in HTML. For Eg: 19.274:2102 should be displayed as 19.274 mm…
Guru
  • 47
  • 6
1
vote
1 answer

How to properly serialize and deserialize an array of objects into/from json?

I'm trying to implement a friends list which needs to be stored in a .json file, in Kotlin/Java with libgdx, but this isn't neccesary(Java is fine). My code for (1) doesn't work so instead of pasteing it here I'll just try to explain my design and…
Alex Ban
  • 29
  • 1
  • 6
1
vote
1 answer

Major rearrangement of pandas DataFrame containing nested lists and dictionaries ( CFBD (College Football Database))

The College Football Database (cfbd) contains all team ranks for each week of every college football season going back to 1937.I am trying to set up data from the cfbd in a way that will allow me to examine how a particular team's AP Top 25 ranking…
Adam
  • 840
  • 6
  • 24
1
vote
1 answer

How to use jq to merge a list of dictionaries into one dictionary

I'm developing jq expressions on the command line. (I plan to use the expression with pyjq in python to parse http requests.) The following command line: $ cat some.json | jq '.collection.rows[].rowAnswers | map({ (.refCode) :…
a693673
  • 57
  • 1
  • 1
  • 5
1
vote
1 answer

Spark parse nested json with variable json keys

I have below structure root |-- groups: array (nullable = true) | |-- element: struct (containsNull = true) | | |-- programs: struct (nullable = true) | | | |-- **{ program id }**: struct (nullable = true) | | | | …
Dot Net Dev 19
  • 345
  • 2
  • 12
1
vote
1 answer

JQ merge WooCommerce REST API responce

Im trying to parse data from woocommerce from linux console. Need to take only shipping info and item names with quantity. im making curl request to wp-json/wc/v2/orders/ORDER_ID then jq '{order_id:.id,ship_info:.shipping,items: (.line_items[] |…
1
vote
1 answer

JOLT add object name into body

I have a JSON Payload and I would like to use the name of each repeating object and add it to the body : { "error": [], "result": { "trades": { "foo-test-UCI7BS": { "ordertxid": "00TEST", "postxid": "00TEST" }, …
DavidMc
  • 19
  • 4
1
vote
1 answer

Ignore enclosing braces with JSON parser while serializing object in Java

I have the following classes: @JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) public class User { private String id; private List references; ..... } @JsonIgnoreProperties(ignoreUnknown =…
zepol
  • 187
  • 5
  • 20
1
vote
5 answers

Parse JSON list with no key in PLSQL

What I'm trying to do is fill up a table with the data from a JSON. The file is formatted like this. [ { "name": "Victor", "age": "20" }, { "name": "Ana", "age": "23" } ] I can't change how it's formatted. I tried using…
Whiplax
  • 13
  • 3
1
vote
1 answer

Swift Error: keyNotFound No value associated with key CodingKeys

Trying to parse a JSON response and running into this error. keyNotFound(CodingKeys(stringValue: "id", intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: "No value associated with key CodingKeys(stringValue: "id",…
John Gerard
  • 299
  • 4
  • 19