Category "json"

Autocomplete shows only message N results are available, use up and down arrow keys to navigate. instead show list

my problem is clear. I'm using jquery autocomplete and i don't know why it shows me only the message: 9 results are available, use up and down arrow keys to n

Object of class stdClass could not be converted to string error

I have the following string: {"Coords":[{"Accuracy":"65","Latitude":"53.277720488429026","Longitude":"-9.012038778269686","Timestamp":"Fri Jul 05 2013 11:59:34

json.loads() decodes only with raw string literal

I am trying to execute the following code: str_2_load='{"source":"\u003ca href=\"http:\/\/twitter.com\" \u003eTwitter \u003c\/a\u003e"}' json.loads(str_2_load)

Can I Deserialize a specific field from JSON?

I am writing a method that takes a British post code and returns the Latitude and Longitude of this postcode as a "Location" object. public class Location {

YAML equivalent of array of objects in JSON

I have a JSON array of objects that I'm trying to convert to YAML. {"AAPL": [ { "shares": -75.088, "date": "11/27/2015" }, { "shares": 75.08

Check if Object is Dictionary or List

Working with .NET 2 in mono, I'm using a basic JSON library that returns nested string, object Dictionary and lists. I'm writing a mapper to map this to a json

ZipFile' object has no attribute 'seek'

I am trying to get a script working that can make an ePub file. They are compressed zip files that are deflated (i.e. without compression) and have to be done i

UnitTest JSONObject shows null

I have got a problem connected with JSONObject. @Test public void toUrlTest() throws JSONException { String url; JSONObject json = new JSONObject();

How do I convert the google private key for the google calendar api into a env file?

I'm trying to use JWT to access the google calendar api. I'm using Node to make my call. How can I get this line of JSON into my .env file: "private_key": "--

How to convert an object containing DateTime fields to JSON in Dart?

I try to convert an object to JSON. var obj = { "dt": new DateTime.now() }; var s = stringify(obj); The runtime throws an exception: "Calling toJson meth

Can't convert JSON string to Javascript object

I am trying to convert JSON string to javascript object, but unsuccessfully. This is my code: result = "{'image': 'https://google.com/16469374645-11-12-05-27-

how to read json response in jsp

My client side program is like this: DefaultHttpClient httpClient = new DefaultHttpClient(); HttpResponse res = httpClient.execute(req); Server side, I have

Json.NET: how to remove assembly info from types in the resulting json string?

I am serializing using Json.NET, but the resulting string ends up way too long, because it includes a ton of surplus info about the assembly that I have no use

Execute all statements in try/except even after encountering exception [Python]

I'm trying to extract values from JSON input using python. There are many tag that I need to extract and not all JSON files have the same structure as the sourc

I am making POST request from flutter app to Django-Rest user and getting null response

I'm a novice at this. I have been making POST requests from my flutter app to Django-Rest user and getting a null response on vendor name as copy pasted below.

JSON.parse() Returning Unexpected end of input

[`const express = require('express'); const app = express(); const https = require('https'); const url = "https://api.thevirustracker.com/free-api?countryTimeli

Contentful API returning 'version mismatch' on entry update

I'm attempting to do the following with the Content Management API for Contentful: Get an entry (entry1) Find another entry (entry2) using data from a field in

How to merge multiple json files in a directory with jq or any tool?

I am trying to merge all json files in a directory (can be many). I know that if there are only 2 files, I can use jq -s . file1.json file2.json. But when I tri

Formatting DynamoDB data to normal JSON in AWS Lambda

I'm using AWS Lambda to scan data from a DynamoDB table. This is what I get in return: { "videos": [ { "file": { "S": "file1.mp4" },

Is it possible to re-use an array taken from PHP via JSON in a $.ajax function?

Here is the deal: This area is a preparation for a dynamic chart where I'm opening a new select input when my first select input is selected. With its value(fro