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
0 answers
9 views

How to enter a multiline string representing JSON into Visual Studio

If I enter this into Visual Studio editor, it is a mess and it doesn't work as s is spread over multiple lines in the Editor and contains embedded " characters. // This is my json string string s ...
user avatar
  • 6,954
0 votes
0 answers
6 views

select json output from Micros Database

Has anyone who uses the "old" Micros database platform found a way to select the results of a query as json content? Meaning select a from tablea and have it returned at {"a", &...
user avatar
  • 927
0 votes
0 answers
14 views

there is no error even if i don't use cleanup function in useEffect hook

i have a react component which loads the database.json data and renders it to the browser i have another component which just has a little text in it. what i have done is i created a navbar component ...
user avatar
0 votes
4 answers
27 views

Retrieve multidimensional JSON data where index number is randomized/unknown

Been delivered some confusing JSON data with a problem I haven't seen before. The JSON is formatted similar to this structure: [ { "title": "Event", "start_date"...
user avatar
  • 65
0 votes
0 answers
9 views

Is there a way to send JSON data with the key not being in double quotes with Axios?

I'm trying to make an simple Login screen with my back-end already being done. The Login API is finished(after testing with POSTMan), however I've had issues with sending the JSON data back to my back-...
user avatar
0 votes
0 answers
15 views

How do I filter a local JSON in React?

I'm trying to make a React app with search and filter capabilities. Right now it's capable to search, but not to filter. You can see a working snippet here: https://codesandbox.io/s/flamboyant-shadow-...
user avatar
0 votes
0 answers
9 views

"Find the maximal number of section_listings that an instructor is allocated" using MongoDB map reduced program

"Find the maximal number of section_listings that an instructor is allocated" using MongoDB map reduced program. This is my code below however it comes with "TypeError: db.course.find()....
user avatar
0 votes
3 answers
23 views

Python 3.9 parse and filter json to have entire rows having specific keyword:value

For a JSON file, on doing json.load its getting converted into list of dictionaries. sample rows are from list of dictionaries are as below: - config_items_list = [{'hostname': '"abc2164"', '...
user avatar
1 vote
0 answers
38 views

How to send data from POST to Database with JSON

For my work I'm currently creating a schedular. The schedule looks good and has the info on th right place on the website. The editor of the schedule looks fine, with getting the data. I am working ...
user avatar
  • 21
0 votes
1 answer
22 views

What is the most efficient way to display and rename only the keys from a nested JSON?

I have the following JSON structure: I will like to display only the yellow highlighted keys, rename them and then put them in a new array. Renamed is the name of the keys: act = Actual prognosis = ...
user avatar
  • 1,129
-1 votes
0 answers
15 views

C# How to configure service to trim trailing zeroes from the result JSON

I have a service, which returns numbers with a floating point the following way: { "exampleNumber1": 15.1500, "exampleNumber2": 3000.0, } The desired response is the ...
user avatar
0 votes
0 answers
13 views

How to generate hash using Node JS on data containing decimal/trailing zeros

In trying to verify Authorize webhook notifications in Node JS I've run into the following issue having to do with decimal numbers/trailing zeros: Authorize.net forms a hash using HMAC-SHA512, with ...
user avatar
  • 193
0 votes
1 answer
12 views

How to require json data to Node.js after bundling the whole server into an executable with the "pkg" compiler?

In normal node.js environment which I run by "npm start", I can always just require/import JSON and the data inside the file will be received. For an example, if I have "./Assets/port....
user avatar
0 votes
1 answer
17 views

How to sort by date from an API call with a object array JSON in Angular/Ionic?

I have JSON object with dates. The structure of this JSON looks like this: { "dates": [ [ 1660834227864 ], [ 1660883117638 ], ...
user avatar
  • 890
-1 votes
0 answers
22 views

Convert json response into graphql [closed]

Hey can any one help me to convert above json response into graphql Convert the below json response into graphql query in ruby on rails. Below are custom json response we need to convert into graphql ...
user avatar

15 30 50 per page
1
2 3 4 5
22973