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

1 vote
0 answers
30 views

ReactJS: ResizeObserver loop completed with undelivered notifications

I'm seeing the following error when I submit a particular form: This is happening when I submit a edit form but I don't see this error when I submit a add form. I have checked thoroughly in my ...
0 votes
0 answers
15 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
9 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
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 ...
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 vote
2 answers
50k views

Getting 'fetch has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present... on React page

while I am experienced in .NET and JavaScript, I am currently learning React and during the fetch to my REST API I am getting this error. Access to fetch at 'https://localhost:7142/api/Campaign' from ...
18 votes
1 answer
19k views

Cannot create instance of type 'System.String'

I try to get my section from appsettings.json, and then bind it to the intance of MongoSettings class, but I have an exception which is: "Cannot create instance of type 'System.String' because it ...
19 votes
11 answers
76k views

How to maintain the order of a JSONObject

I am using a JSONObject in order to remove a certin attribute I don't need in a JSON String: JSONObject jsonObject = new JSONObject(jsonString); jsonObject.remove("owner"); jsonString = jsonObject....
104 votes
19 answers
387k views

TypeError: Converting circular structure to JSON in nodejs

I am using request package for node.js Code : var formData = ({first_name:firstname,last_name:lastname,user_name:username, email:email,password:password}); request.post({url:'http://localhost:8081/...
-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 ...
1 vote
2 answers
10k views

java.lang.ClassNotFoundException: org.json.JSONObject

I am developing a WAR project in Eclipse Mars which is running on a Tomcat 7 application server. I am also using the Java JSON API to create JSONObjects from a REST web service.I have ensured that my ...
1 vote
4 answers
8k views

Loop through nested JSON with php

I have a json file with the following structure: [{ "Item": { "name": "Item 1", "schedule": { "class": "Class", "uic": "UIC" }, "days": "...
2 votes
0 answers
33 views

Snowflake private keys environmental variables unable to decrypt

I currently have my snowflake connector configuration set in a JSON file { "name": "connector-name", "config": { "tasks.max":"1", "...
91 votes
13 answers
79k views

How to globally set default options for System.Text.Json.JsonSerializer?

Instead of this: JsonSerializerOptions options = new JsonSerializerOptions { PropertyNamingPolicy = JsonNamingPolicy.CamelCase // etc. }; var so = JsonSerializer.Deserialize<SomeObject>(...
0 votes
1 answer
22 views

Error loading JSON schema from https://json.schemastore.org/<manifest.json>: Not Found

Description: I'm encountering an issue with loading a JSON schema in my development environment. Here are the details: Problem: When I configure my JSON schema in Visual Studio Code using the ...

15 30 50 per page
1
2 3 4 5
24069