Questions tagged [json]

JSON (JavaScript Object Notation) is a textual data interchange format and language-independent. Use this tag when this text format is involved. 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 (http://jsonlint.com).

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Postgres json_build_object adding backslash to text column

I am doing a select from a table and I want the output to be in json. For this I am using the json_build_object function. I am getting some unexpected behavior when the select has a value with a slash ...
-1
votes
0answers
19 views

Deserializing Json array of objects returns null

I'm trying to deserialize some Json data to a list, however the list returns no data. An example of the Json string I am using is {"Data":{"EmployeeReport":"...
0
votes
1answer
19 views

How to validate extra key in the Json Schema in C# and throw error

So I have two Json files where I am validating them and If one file has extra key, I would like to throw an error. Right now with my below code, it does not give me any error, it takes the extra key ...
0
votes
0answers
7 views

Postman JSONError: No value found for key

i have the following error when trying to read the JSON response in test script: pm.test("JSON valid", function () { var jsonData = pm.response.json(); console.log(jsonData....
0
votes
0answers
9 views

log4j2 new objectMessageAsJsonObject problem

I got a problem with this configuration and I'm trying to identify if the error comes from a json serialization (using lombok and jackson), compatibility with libraries or something else. I'm trying ...
0
votes
1answer
27 views

How do I access a JSON object's fields in SQL?

I pulled JSON data from a third-party API and I am trying to automate its entry into an SQL database. The format of the JSON is as follows : { "fields": { "Example.FirstName": &...
0
votes
0answers
10 views

how to auto send json with requests python

So I've written code that I expect to send massage in my e-learning website this is my code from bs4 import BeautifulSoup as bs import requests,re,mechanize class spamdb(object): def __init__(...
0
votes
0answers
16 views

R - Trying to parse a json and convert in to to a data frame

I'm trying but not able to understand how to convert the below json: ["{\"tables\":[{\"name\":\"PrimaryResult\",\"columns\":[{\"name\":\"...
0
votes
0answers
20 views

Select variable from JSON PHP POST data?

I have this post data from WebHook, I want to use it download a file using "fileUrl" variable (Marked with **). Problem that there's 3 "fileUrl" variables in JSON POST data that I ...
0
votes
1answer
19 views

How to fix SQL server JSON_VALUE path has '-' error

I'm trying to get values of fields in sql that is in JSON type. unfortunately path has '-' so that I get an error when I try to get the value. field->** **{"Con":["AA"],"X-...
0
votes
2answers
14 views

console.log returns “Object” for some fields, instead of body data [spotify-web-api-node]

I'm using the spotify-web-api-node and when I do api calls, the returned data looks like that in the console: Album information { album_type: 'album', artists: [ { external_urls: [Object]...
0
votes
1answer
22 views

If Printed results are the same TODAY don't print again. Python script to run every 10 minutes

I want to run this script every 10 minutes and if the results are the same today I don't want to print them again unless they change. Is this even possible? No I'm not a programmer by any means this ...
0
votes
2answers
51 views

WebApi HttpPost not receiving the posted content from HttpClient

Web API: I tried using [FormBody] and [FromForm] before the string stringcontent as well. // POST api/<MAUserController> [HttpPost("AuthenticateUser")] public async ...
0
votes
1answer
47 views

Duplicate code Javascript. how to modularize it

I am facing a duplicate issue in Sonar and i am not able to figure out how to correct it. Here is the sample code. Please not formFields passed is immutable state maintained in my project. So if i do ...
-3
votes
2answers
30 views

python 3 with json dictionary

I'm currently working on a project, and I have saved dictionaries list into a JSON file, separated by lines. How can I convert the JSON dictionaries back into the PYTHON program, putting it back to ...

15 30 50 per page
1
2 3 4 5
20325