Questions tagged [json]

JSON (JavaScript Object Notation) is a serializable data interchange format intended to be 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).

0
votes
0answers
6 views

Powershell — concatenation generates Unicode error in JSON parser

I downloaded a set of 64,354 JSON-formatted Supreme Court opinions from courtlistener.com and am attempting to load them into a MongoDB collection. Each of these original files is a JSON object ...
1
vote
1answer
11 views

how do I use jsonb_array_length with condition?

My table, t, has a nested jsonb_object, ss. Below is an example of a single record: { "id":1, "ss":[ { "ss_id":1, "approved":true }, { "ss_id&...
0
votes
1answer
14 views

What's the most succinct syntax to preserve only specific keys from a large JavaScript object? [duplicate]

In other words, I want to clean objects by dropping most of their keys. Say a third party API returns JSON with a large number of of attributes you don't care about. obj = { name: ..., id: ..., ...
0
votes
0answers
13 views

How can I parse a JSON string into a struct in swift?

Here's the code I have so far: struct MyStruct { func readStream() { // AF is the AlamoFire library AF.streamRequest("https://example.com/stream/\(streamId)", headers: [....
0
votes
1answer
9 views

Why cant i call objects from a json file in p5js?

Ive been working on a school project, and for this game i need to call objects to create a level. However, whenever i call the info of the objects, it always ends it with an undefined, and wont ...
0
votes
0answers
5 views

How to import several json files on mapbox, and use them on the same map?

I am looking for a use of several json files, to compare them. This implies to import the json files on mapbox, and to be able to compare the different files on a single map. We need to create an ...
-1
votes
2answers
28 views

Array in a json

I am creating a python project who are working with an api, the api return an json like this: "1": "2018-10-13T08:28:38.809469028Z", "result": [ { &...
0
votes
0answers
22 views

Is there any way to outsmart a Javascript string comparison? [closed]

I have an HTML form which takes a string. Every string should only be input once. There is a simple string comparison in JavaScript with strings that are already input including a regex which deletes ...
0
votes
3answers
51 views

Parse and modify an array in Javascript

I am working in Javascript with a .dat file with different data about English Soccer teams. I was able to obtain a Json that I transform in this array: [{"team":"Arsenal","f&...
1
vote
1answer
17 views

Django - Could not parse the remainder: '++_RS' from 'annovar.GERP++_RS'

I have a JSON value that comes directly from a DB that has this label GERP++_RS The offending code is basically this {{ annovar.GERP++RS}} In the template. The JSON contains those keys in it and ...
0
votes
2answers
16 views

How to merge multiple excel file via python

I have 30 excel files and want to combine them all into only 1 excel file (using Python) and i want only 1 header on top of file ( not keep happening 30 times) dont know how to write in python please ...
0
votes
0answers
12 views

JavaScript code to read the latest values from a json file that keeps getting updated every few seconds

I am very new to JavaScript and trying to display the latest values from a .json file, that keeps getting updated every 10 seconds, into a HTML page. I am reading the file every 10 seconds as well, ...
0
votes
0answers
8 views

what sequence of JSON Objects is correct?

Could you please help me to understand, in the response body, what sequence of JSON Objects is correct: args, data, files, form, headers, json, xml, URL?
-1
votes
2answers
30 views

How to find out if a string part is included in a JSON response?

Let's say the print of a JSON response print(response) is: {'incidents': [{'text': 'FT', 'homeScore': 2, 'awayScore': 0, 'isLive': False, 'time': 90, 'addedTime': 999, 'incidentType': 'period'}, {'...
0
votes
0answers
14 views

How to parse am s3 object that contains nested JSONs with different schemas?

I have files being dumped into s3 from kafka and these objects are in JSON format. Each s3 object contains multiple nested JSON arrays that have a different schema and I want to parse each file to ...

15 30 50 per page
1
2 3 4 5
22201