Category "json"

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

json_encode turns array into an object

I am have created a 'liking' system for a site but I'm having a bit of trouble with json_encode and json_decode. I use arrays to store who has liked a post, so

No matching client found for package name "...." with different buildvariant

I want o implement push notification. I added to project level: dependencies { classpath 'com.android.tools.build:gradle:2.2.2' classpath 'com.

Getting a JSON request in a view (using Django)

I am trying to set up a view to received a JSON notification from an API. I'm trying to figure out how to get the JSON data, and I currently have this as a star

how to create elements dynamically in HTML using JSON file

I want to create HTML elements dynamically using JSON file. {"myObject": { "JAVA": { "id": "JAVAsubj", "path": "json/data.json" }, "C#": { "id": "

UnicodeDecodeError: 'utf8' codec can't decode byte 0xa5 in position 0: invalid start byte

I am using Python-2.6 CGI scripts but found this error in server log while doing json.dumps(), Traceback (most recent call last): File "/etc/mongodb/server/cg

Jolt add key value to children

I am using NiFi Jolt Processor to transform some JSON data. I need to create array of objects. I can get all objects from assets, but I want to add each date in

Google's "define: " through an API?

I want to get the result of searches that use special features in Google, like "define: [phrase]" and I can't seem to find relevant information about this. Doe

Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1

using System; using System.Collections.Generic; using System.Linq; using System.Text; using Facebook; using Newtonsoft.Json; namespace facebook { class Pro

How to parse this json result without making class in C#

How can i parse this json without class in c#. I don't know what to use either an array or anything else. This is the json result i want to be parsed { "s

Is it possible to map only a portion of an array? (Array.map())

I am building a project using React.js as a front-end framework. On one particular page I am displaying a full data set to the user. I have an Array which conta