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,907
questions
0
votes
0
answers
18
views
Configuration in task.json and launch.json in Vs Code for showing execution time in terminal after running
I am a complete beginner in this, with the help of Chatgpt i configured my task.json and launch.json (i have no idea what are they), the programs are running fine but the terminal is not showing ...
0
votes
0
answers
11
views
How do i convert in python this type <class 'llama_index.core.base.response.schema.Response'> into a josn format,or acces the score?
I need to make an llm which have a basic response when all the documents has a similarity score less then 0.75...in order to do that i use llama but i can t acces score to compare it and see if is ...
0
votes
1
answer
6
views
How to extract JSON array in PieCloudDB
I am new to JSON, in my PieCloudDB Database there is a json column as follows(example data):
{"A001": ["123","124","125"],"A002": ["234",&...
-1
votes
0
answers
11
views
Accessing the Internet Archive's Twitter Stream Grab
I have downloaded one day's worth of Twitter (X) data from the Internet Archive's Twitter Stream Grab here: https://archive.org/details/twitterstream. The data is provided as JSON files.
But when I ...
0
votes
0
answers
37
views
write/read to/from json a python dict that has a polars DF for one or more keys
I am new to Polars in python. I am trying to save a dict that contains single pl.DataFrames for the values of some of the keys. I am currently trying to save the dict in JSON format, but I am ...
0
votes
0
answers
23
views
Getting HttpErrorResponse in Angular, Http failure during parsing
I am building a RESTful API with a Spring Boot Backend & Angular frontend.
Utilizing a service meant to return a client list as shown below:
@Injectable({
providedIn: 'root'
})
export class ...
1
vote
1
answer
33
views
How to count values from a column with JSON content?
I have a table with singers and each singer can be linked to many musical styles.
Musical Styles are in a TEXT column, but the content of the column has JSON format.
I want to count the number of ...
0
votes
0
answers
8
views
could not train my data using the json file
I've trained a model and downloaded its trained data which is in the format JSON, later im trying to use the json for training but it shows error as even though it correctly contains all the ...
0
votes
1
answer
45
views
Optimizing json.Marshal in Go
I have a service that needs to marshal large JSONs (~50KB length).
In the beginning, I used map[string]interface{} and encoded it but it consumed a lot of CPU. Then I tried to map the JSON into ...
2
votes
1
answer
51
views
Read Met Office Data Point JSON into Panda
I am using the MetOffice Datapoint API to download UK Weather data as a JSON. I would then like to read that JSON file into a pandas DataFrame. The format of the JSON file is as shown
{"SiteRep&...
0
votes
0
answers
25
views
How can i get the Value property of a response from Powershell? [duplicate]
I make a REST call using Powershell and get a response of the following:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#directoryRoles",
"value": [
...
1
vote
2
answers
44
views
Converting JSON list with multiple nested dictionaries to csv or excel
I have a JSON that I download from a website that has multiple nested dictionaries inside the main list. This is a very simplified version of it.
[
{
"id": 1,
"...
-1
votes
0
answers
18
views
Managing Repeated Data: Script Array vs External JSON
I'm working on a Nuxt project where I have a section with 8 <li> elements, each containing an image, alt text, class, and a link. I want to avoid repetitive code by using a loop to render these ...
0
votes
0
answers
11
views
deploy a react.js site with data .json file in netlify
I have a react.js QuizApp project with question json file in data folder. I try to deploy that in Netlify site,but in it's demo when it is deployed, data don't load. It's demo works as long as, Npm ...
-2
votes
0
answers
12
views
Trouble using Post method in nest js
I used dto to recieve data with object with post in nestjs typeorm
@Post(':userId/charge-amount')
@HttpCode(HttpStatus.OK)
async chargeUser(
@Body() chargeAmountDTO : ChargeAmountDTO,
...
0
votes
1
answer
18
views
Redshift COPY with JSON PATH Case Sensitivity
I want to copy a file from S3 to Redshift. Content is in camelCase:
{"accountId":{"S:"1acb4"}}
Redshift columns are in all lowercase. This is marshalled Dynamo JSON, so I am ...
1
vote
1
answer
35
views
Json.Net How to Serialize and Deserialize custom types in custom way
I use the R3 reactive programming library and Newtonsoft. I'm trying to save object data to a file so that I can later read from it. The recording just works without problems. But when reading the ...
0
votes
0
answers
11
views
How to get raw json or other data for onecall ticket [closed]
I am trying to get the data that populates the ticket here: https://ia.itic.occinc.com/iarecApp/ticketSearchAndStatusView.jsp?enc=%2B%2FG1BMVDAKGJSwm2QiSowfk5NrkGvXR9ZW9t6AwXqmv0wkQXl%2FZjXxhBxVIJbBZH
...
0
votes
0
answers
18
views
S3 Sink Confluent Kafka Connector JsonParser feature
I have json data in kafka, getting below stack trace
at org.apache.kafka.connect.json.JsonConverter.toConnectData(JsonConverter.java:331)
... 18 more Caused by: com.fasterxml.jackson.core....
0
votes
0
answers
37
views
Serde doesn't see untagged enum variant in input ("data did not match any variant of untagged ...") [duplicate]
Using Serde, I want to parse JSON data like this:
{
"data_type": "uint8",
"scales": [{
"encoding": "jpeg",
"key": "4.0x4....
0
votes
1
answer
35
views
How to bind json data to FromBody Dto in ASP.NET Core Web API?
In my ASP.NET Core Web API, when I call a method that is a HttpPost and receives a DTO object in FromBody, and sends extra fields that are not in SourceUrlDto, I fail during binding on the code side.
...
0
votes
0
answers
8
views
Data analysis of JSON: Time vs Memory Optimization (Python)
I had a task about analysing data in a newline delimited JSON, using Python. I was asked to give 2 approaches, one that optimizes time spent, and one that optimizes memory used.
Each line of the JSON ...
0
votes
1
answer
37
views
Expand the json string to multiple columns in pyspark (python)
I need to expand the Json object (column b) to multiple columns.
From this table,
Column A
Column B
id1
[{a:1,b:'letter1'}]
id2
[{a:1,b:'letter2',c:3,d:4}]
To this table,
Column A
a
b
c
d
id1
1
...
-1
votes
1
answer
33
views
How do I query System.Text.Json.Nodes.JsonArray by value in .net core c#
I wanna query an System.Text.Json.Nodes.JsonArray by prop value ,
Is there any JsonArray function can query JsonObject in which array index without foreach/forloop or extra libray ?
[
{"...
0
votes
1
answer
18
views
I want my Jpos Server handle Json format message through TCP/IP or Postman, i don't know how to proceed
The final objective is to be able to take a JSON message from any client, convert it into ISOMsg, and send it to a destination server able to answer ISO 8583 messages ( I use Jpos Server to simulate a ...
0
votes
0
answers
16
views
My VScode does not watch when I use "-w" flag in my package.json
I'm working on a SASS and Bootstrap project in VScode and facing an issue where SASS doesn't watch or compile when I use the "-w" flag. It compiles without the "-w" flag but doesn'...
0
votes
1
answer
28
views
CSV backslash create issue while procession file data
I am trying to process a CSV file in which one column contains JSON formatted data. In this JSON data, some fields use backslashes, which creates a problem when mapping fields with their values.
Link ...
0
votes
1
answer
29
views
How to invoke a cell magic inside a function?
Consider the following program, which I wrote in two Jupyter Notebook cells.
Cell 1:
import rumbledb as rmbl
%load_ext rumbledb
%env RUMBLEDB_SERVER=http://public.rumbledb.org:9090/jsoniq
Cell 2:
%%...
0
votes
0
answers
7
views
How to extract incoming data from a http rest request in a service in Moqui?
I want to extract json data from incoming request in a Moqui Service
I have created a service in Moqui which processes incoming data, the problem is data comes as a direct json insted of being nested ...
-1
votes
0
answers
54
views
How to create a table from a JSON recordset in Firebird DB? [closed]
I am documenting how to create a table from a JSON recordset in multiple databases. So far I have figured out MySQL, SAP HANA, Oracle, Postgres, SQL Server, Snowflake, and SQLite. How would I do ...