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).
361,105
questions
1
vote
2
answers
47
views
Using jq to group-concat fields by field name prefix
I have a json file like this, I woiuld like to have a jq based solution to transform this:
{
... fields1 ...
"any": [], "other": 1,
"aa.2": "second.", &...
0
votes
1
answer
26
views
How to Define JSON Schema for a JSON String Field in an Object?
I have a JSON object where one of the fields contains a JSON string. I need to write a JSON schema that validates this JSON string field. Here's an example of the JSON object I'm working with:
{
&...
0
votes
2
answers
51
views
How to tackle TypeError: list indices must be integers or slices, not str
I want to build a scrapper. And I wrote this code, it keeps on running into error. I would be grateful if anyone can help.
import requests
import pandas as pd
def fetch_json(api_link, timeout=10):
...
0
votes
0
answers
32
views
JSON object is undefined in some scenarios, normal in others [duplicate]
I'm making a web app with ReactJS that uses the BoardGameGeek API. This API returns XML files, so I have been converting them into JSON and then parsing them. In some cases, the JSON object works ...
0
votes
0
answers
25
views
extracting data from a callback sent by a post request
when the balance of my service is updated, then to my server http://.../callback a post request comes with data from the screenshot and from this data I need to extract _id and socialnetworkId into a ...
0
votes
1
answer
25
views
BigQuery JSON Extract Only Returns Nulls
Have been trying to get JSON_EXTRACT or JSON_VALUE working but keeps pulling in nulls
{"$email": {"value": "[email protected]", "updated_at_ms": 1721139567246}, &...
0
votes
0
answers
14
views
Serialization Issues?
I create a .NET dataset in my web api that has the following schema when I perform a DataSet.GetXmlSchema:
<xs:element name="Table2">
<xs:complexType>
...
-2
votes
0
answers
19
views
how ISODate can be passed in JSON through mongodb helper functions [closed]
I am using JSON and mongodb shell helper functions to generate the report from the UI.I tried to convert the date to String but the Date is defined in MongoDB Database as ISO Date and I am getting ...
0
votes
1
answer
45
views
Generalizing the case of converting a .json file to .csv
I have .json files in the following format:
{
"uls":{
"equ1-L1-u": {"D": 1.10, "La": 1.50, "Lb": 1.50},
"equ1-L2-u": {&...
0
votes
1
answer
23
views
json schema which either contains properties B and C or D
I defined the following schema:
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://example.com/schemas/test",
"type": &...
0
votes
1
answer
24
views
Print values from json and html files stored in different folders with variable names
I'm automating some tests, every run generates a folder with a variable name. Inside every one of those folders there's a "statistics.json" and a "index.html".
For each folder I ...
0
votes
0
answers
28
views
How to load and draw a tilemap in raylib with JSON-file created from Tiled?
I created a tilemap in the tilemap-editor Tiled.
However, I am not sure how to actually display the tilemap on the screen.
I exported the tilemap into a format called ".tmj". Which is a JSON-...
0
votes
0
answers
50
views
curl issue with URL with quotes [closed]
I'm trying to return some JSON data from curl using an API call with single quotes in it. Each time it acts like I haven't formatted the URL correctly, giving an error code of 3.
Error:
* Could not ...
0
votes
2
answers
53
views
Formatting parameters for C# HttpClient.PostAsJsonAsync
I don't have experience with REST APIs but I inherited one that I need to develop a C# .NET Framework 4.71-based client for.
I figured out how to invoke commands that don't need parameters. For ...
0
votes
0
answers
31
views
While converting json to pdf unicode characters are replaced
In my api I am getting json response from one api, I have to convert it to a pdf and send it.
but while marshalling characters like <, >, & .. are replaced by \u300e,...
Also " within ...