Skip to main content

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).

json
-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() ...
Michel Tournay's user avatar
-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 ...
anon's user avatar
  • 31
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": "...
user2988851's user avatar
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 ...
ki81's user avatar
  • 83
-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 ...
Sjwa's user avatar
  • 1
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\", \"$...
SwigitySwogity's user avatar
-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 ...
李苏瀚's user avatar
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 `{...
Philip's user avatar
  • 11
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": { "...
rDX's user avatar
  • 227
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"...
SugarSecret's user avatar
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 ...
Cyoung75's user avatar
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 "...
HKelz's user avatar
  • 1
-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 +------+------------------------------------+---------------------------------------------------------...
Shibu's user avatar
  • 1,480
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 ...
WilliamKose's user avatar
-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": &...
the digitalmouse's user avatar

15 30 50 per page
1
2 3 4 5
24060