Android org.json issues with converting Map to JSON

JSON
I have some code to create a specific JSON result in Java (for Android): Map<String, Object> jsonDict = new HashMap<String, Object>(); Ma...
1 year ago

'Uncaught SyntaxError: Unexpected token x in JSON at position 1' when trying to parse HTML embeded string JSON

JSON
I've being trying to parse a hardcoded JSON string to an usable format, but I can't find a way to get it work, getting 'Unexpected token' or just weir...
1 year ago

Spring jackson can't parse JSON Object

JSON
I Have entity Users public class Users implements Serializable { private Long id; private String password; private String...
1 year ago

Aurelia - If params in Promise.all

JSON
I am trying to work out a search page where a number of search types can be filled in. Then a WebApi call is made if the search type is filled in an...
1 year ago

Converting json to html table in python

JSON
So I've been using the json library for python to get data from JSON files using python. infoFromJson = json.loads(jsonfile) I fully understand how...
1 year ago

Rails JSON API layouts with Jbuilder (or other)

JSON
In my rails 3.2 app, I'm using jbuilder to render responses from my JSON api. I want to provide a common structure to all API responses, and a layout...
1 year ago

Can you have a space in the object name in JSON string and still retrieve it?

JSON
I have a JSON object which appears as such: $leo = {"Leonardo DiCaprio":{"ht":"70","wt":"222","eyes":"blue","movie":"titanic"} But I am having a ha...
1 year ago

PHP json_decode gives empty array

JSON
Hi I'm trying to decode a string with json format into a associative array. The string is this one: (My string is from a database and its generated th...
1 year ago

Rails json output carrierwave thumbnail version

JSON
I need to render out a json output from a controller and I'd like to include the thumbnail version of my images in the json. If I render json using ...
1 year ago

JSON Attribute Best Practice

JSON
Usually, what I see is {"attribute":241241} but writting this does exactly the same thing : {attribute:241241}. Is {attribute:241241} considered b...
1 year ago

Thymeleaf print JSON string as JSON object into a javascript variable

JSON
In Specific I need a way to print JSON representation of a string value into the html page via thymeleaf. In detail I'm having a model attribute wh...
1 year ago

Multidimensional array json_encoded

JSON
I try to return a multidimensional array of dates and revenues each date as JSon array in order to display a chart in my panel dashboard. Unfortunatel...
1 year ago

Calling a JSON Value by giving the key as variable?

JSON
I want to call a JSON value by giving the key via a variable. Given if (data[airplane].RunwayThreshold !== undefined){} Can I make RunwayThreshold ...
1 year ago

Deserialize a JSON array in c# into a list

JSON
I want to deserialize a json of this format into a List of objects. This is what my JSON looks like: [{ id : 3, vraag : "Op de keyser...
1 year ago

Post Method using Volley not working

JSON
Hi i am using Volley for my login page. I need to pass data like this manner { userID : '-988682425884628921', email :'aditya@vyas.com', passwd : '12...
1 year ago

Getting 2nd level of JSON data in PHP

JSON
I have JSON data which follows this model: { "questions": [ { "questionKey": 0, "question": "string", "required": true, ...
1 year ago

How do I get ASP.NET Web API to return JSON instead of XML using Chrome?

JSON
Using the newer ASP.NET Web API, in Chrome I am seeing XML - how can I change it to request JSON so I can view it in the browser? I do believe it is j...
1 year ago

is not JSON serializable

JSON
I have the following ListView import json class CountryListView(ListView): model = Country def render_to_response(self, context, **response...
1 year ago

Upload pdf in HTML and Deserialize json file

JSON
I'm trying to upload a file in html and then send it to my database via restangular. My frontend is a combination of angular with typescript but the u...
1 year ago

Nested json unmarshaling with 2d slices into struct not working in golang

JSON
I have a json structure that looks like { "devices": [ { "server": { "bu": { "add_info": false, ...
1 year ago