Category "json"

jq convert to csv with keys to column rows

I have JSON example like this { "server1": { "dhcp-libs": "12:4.2.5-83.el7.centos.1", "perl-Time-Local": "1.2300-2.el7", "kbd-legacy": "1.15.5-15.

Where is the file angular-cli.json in the new @angular/cli version?

I'm new in angular2 and i have tried to create a project with cli, but when I try to change the css adding it in angular-cli.json, I have detected that this fil

How to map JSON field names to different object field names?

What is the equiv way in Jackson json annotation for the following jax-b annotations? I need to produce json rather than xml and need to know the conventional

Serialize datetime.datetime object as JSON

Currently working on a quick little project in python and am attempting to encode an object into a JSON string. I've done this several times before without any

Converting JavaScript JSON data to Python JSON

I have JavaScript JSON data: var data = '{a: 10, b: 20}' I want to convert it to Python JSON. How can I do? My situation: I have script that read text from

protobuf - field name with special characters

I'm trying to manually model a .proto file representing a JSON which has one of the field names with a dot and an @ sign. I'm getting an error that doesn't expl

Newtonsoft Json Error converting value {null} to type 'System.Int32'

When performing an AJAX request I am getting the following error: Error converting value {null} to type 'System.Int32'. Path '[5].tabID', line 1, position 3

How to parse the following JSON to retrieve the name of the item in snowflake sql?

[ { "itemId": "HWKDVCXKU5", "name": "A", "quantity": 1.000000000000000e+00, "storeId": 1.150192000000000e+06, "type": "structure" },

Need to display only array value in JSON output

How to display only array value in JSON out in php I am using below PHP code echo '{"aaData":'.json_encode($user_details).'}'; And it return below output {

Get a JSON file (that contains Hebrew values) from a remote server and parse it in Node.js

I have a dynamic JSON file hosted on a remote server (acting as some kind of an API), and it also contains some Hebrew text in its values. How can I save the r

Passing JSON into R function

I am trying to pass the following JSON into a function in R. The raw JSON { "type": "Polygon", "coordinates": [ [ [-122.68,42.77], [-1

How to convert FormData (HTML5 object) to JSON

How do I convert the entries from a HTML5 FormData object to JSON? The solution should not use jQuery. Also, it should not simply serialize the entire FormData

400 Bad Request - while POSTing JSON data to RESTful controller implemented with Spring MVC

I am trying to POST some JSON data to RESTful spring controller. But getting "400 Bad Request" as response status. Giving below code from the key configuration

Deserialized Object Has All Values Set to Null

I'm trying to deserialize JSON into a custom object but all my properties are set to null and not sure what's going on. Does anyone see anything wrong? JSON Ex

React Native JSON Value of type NSDictionary Cannot be converted to NSString

I have an issue with A React Native (version 0.38.0) app I am trying to develop. I am basically learning as I go. I am fetching a JSON from a custom API endpoi

Ignore fields from Java object dynamically while sending as JSON from Spring MVC

I have model class like this, for hibernate @Entity @Table(name = "user", catalog = "userdb") @JsonIgnoreProperties(ignoreUnknown = true) public class User imp

Creating a 'jsconfig.json' file for Visual Studio Code

I am fairly new to Visual Studio Code and have been following a tutorial to create Node.js applications with Visual Studio Code. I need to create a jsconfig.jso

JQ: How To Change A Value in JSON with embedded keys

I have the following JSON that is being returned from an AWS Secret: { "ARN": "MyArn", "Name": "MySecret", "SecretString": "{\"ConnectionString\":\"

Django- jQuery AJAX POST response- trouble parsing JSON

I'm using an app that allows me to post forms responses, from an html template, asynchronously. I've verified that my POST works fine, but I'm having trouble wi

Deserializing JSON response without creating a class

From the result of an API call I have a large amount of JSON to process. I currently have this Object convertObj = JsonConvert.DeserializeObject(responseFromS