Questions tagged [json]
JSON (JavaScript Object Notation) is a serializable data interchange format that is a machine and human readable. Do not use this tag for native JavaScript objects or JavaScript object literals. Before you ask a question, validate your JSON using a JSON validator such as JSONLint (https://jsonlint.com).
360,896
questions
-2
votes
0
answers
22
views
json.loads and double backslash [duplicate]
I'm using Python 3.8, and requests to make API calls
I'm receiving from an API JSON datas with double backslash.
"address_1": "\\",
They seem to be lost when using the .json() ...
-1
votes
0
answers
13
views
Jackson INDENT_OUTPUT doesn't format properly - what am I doing wrong?
I've been trying to figure this out for a bit but couldn't pin-point my mistake.
I have a JSON I'd like to read into Java objects, manipulate those objects, then write them to a new JSON.
Code looks ...
3
votes
1
answer
18
views
How to remove a null element from an array using the Jolt Transformation specification?
I want to remove null elements from the array using the Jolt spec.
Example:
Input:
{
"arrayOne": [
null,
{
"key1": "value1",
"key2": "...
0
votes
0
answers
25
views
From a minimal ASP.NET Core Web API how do I return a JObject while maintaining the nested elements?
I am building a minimal ASP.NET Core Web API. One of my endpoints needs to return data contained in a JObject. This JObject represents a complex nested data structure. What I am finding is that the ...
-3
votes
0
answers
12
views
Modding Minecrafts Minecart Speed in 1.20 via json file
so first of all i'm a modding beginner.
I'm making a datapack for 1.20 and now i want to make minecarts move faster (20 blocks per second).
I have changed some crafting recipes via json files just ...
1
vote
1
answer
46
views
JSON giving error "Unterminated string starting at: line 1 column 1 (char 0)" Python
Here's my json:
"{\"question\": \"What artist released the hit song 'Hello' in 2015?\", \"answers\": [\"Taylor Swift\", \"Katy Perry\", \"$...
-2
votes
0
answers
8
views
How to fix problem with configuring compiler/debugger when running C++ on vscode?
I have installed MinGW on my computer. I have made sure that it is up to date and that the location returned by "where gcc" command is the same as my path.
here's my launch.json file
However ...
0
votes
0
answers
8
views
SyntaxError: Unexpected identifier 'port' occur when execute "docker-compose up"
I have created called visitor. The project contains package.json, index.js, Dockerfile and docker-compose.yml. I'm newbie and try to learning about K8S, docker. Please help me solve it.
package.json
`{...
0
votes
2
answers
26
views
Transform a json string in json to another json using jolt transformation
I am new to jolt transformation. what would be the jolt spec to transform my source json
{
"version": "123",
"payload": {
"details": {
"...
0
votes
1
answer
32
views
Get HashMap value from object [duplicate]
I have a json like this
{
"data": {
"category": {
"name_en": "Trend",
"style": "normal"
},
"items"...
0
votes
0
answers
11
views
Mixed bracket types. Is this json or something else?
I am trying to parse data from a URL. I think it looks like json but I'm not sure. The URL also doesn't end in .json (something like https://google.com/file).
The format of the data on the page looks ...
0
votes
1
answer
31
views
How to decode a JSON API (php) call and then display it as text in a ScrollView - SWIFTUI
I have been trying to decode a JSON from a PHP that I have and then displaying the results as Text. I am getting either one of two errors with everything I have tried. The first issue would be "...
-1
votes
0
answers
17
views
udf to transform a json string into multiple rows based on first level of nesting
I am trying to transform a df based on the first level nesting in the json string.
input dataframe
+------+------------------------------------+---------------------------------------------------------...
0
votes
1
answer
43
views
Large JSON encode
I was performing a JSON file encoding in my project and noticed that the method for encoding is synchronous. While discussing this with a friend, he questioned whether a very large JSON file could ...
-3
votes
0
answers
29
views
Looping through JSON to generate a total based on similarly-named numeric fields [closed]
I've got a JSON data set like so:
{ "ts": "4", "FlowvolMeas_dL_12_hr": "3612.82", "FlowvolUnexp_dL_12_hr": "40.26" },
{ "ts": &...