Linked Questions

0 votes
0 answers
84 views

My code : import json a=''' { "abc" : "2", "phone" : { "ss" : "22" }, "def" : "5" , }''' info =...
Jay shah's user avatar
-5 votes
1 answer
82 views

Here it is: var obj = { 'city': 'ny', } I write a comma in the end after ny but this could run in Chrome and Firefox, but not in IE6/7 So does this kind of syntax is right or wrong or ...
hh54188's user avatar
  • 15.7k
27498 votes
25 answers
2.0m views

In this C++ code, sorting the data (before the timed region) makes the primary loop ~6x faster: #include <algorithm> #include <ctime> #include <iostream> int main() { // ...
GManNickG's user avatar
  • 506k
58 votes
8 answers
35k views

As mentioned in this StackOverflow question, you are not allowed to have any trailing commas in json. For example, this { "key1": "value1", "key2": "value2" } is fine, but this { "key1": ...
Rob Watts's user avatar
  • 7,156
18 votes
7 answers
29k views

I am trying to dump a collection to .json file but after looking in pymongo tutorial I can not find any thing that relates to it. Tutorial link: https://api.mongodb.com/python/current/tutorial.html
AnhNg's user avatar
  • 199
27 votes
2 answers
9k views

Modern browsers and environments like Node.js allow you to say {a:1, b:2,} or [1,2,3,]. This has historically been problematic with Internet Explorer. Is this fixed in Internet Explorer 9?
user621486's user avatar
32 votes
1 answer
45k views

I have a data.json file that I'm validating through the command line using python's json.tool, but it keeps giving me back an error message: $ python -m json.tool < data.json No JSON object could ...
3cheesewheel's user avatar
  • 9,713
10 votes
4 answers
19k views

Why is json.loads() returning a string? Here's is my code: import json d = """{ "reference": "123432", "business_date": "2019-06-18", "final_price": 40, "products": [ { ...
Zid's user avatar
  • 459
9 votes
1 answer
12k views

So I've been reading up on proposed JavaScript features, and one I'm concerned about is trailing comma support in object literals and arrays. For parameters, trailing commas don't relate here, so let'...
Sterling Archer's user avatar
4 votes
3 answers
16k views

I am trying to disable the controlNav and directionNav controls within flexslider. I am using the risen theme from themeforest and the theme is using jquery.flexslider-min.js. If I use the full ...
user avatar
5 votes
3 answers
24k views

I'm trying to POST some JSON data to my Perl script, but the JSON module seems to be unable to cope with this string: [{"":"#","jednostka":"","login":"SA"}] I used encodeURIComponent() in JavaScript, ...
Piotr Bielski's user avatar
-3 votes
3 answers
5k views

I have an error: Unexpected token D When I try to send JSON from JavaScript to PHP. I know that error is caused on server side and I tried to fix it, but then I get another errors like Unexpected ...
red_sensor's user avatar
2 votes
2 answers
3k views

Currently been working on eliminating the excess "," comma on the json object I have below. {"rules": { "1000": { "action": "2", "category": "skype", "entity": "Private", ...
bluestella's user avatar
0 votes
2 answers
3k views

I have a really simple chat application on a site which works pretty good. It requests by ajax like this: $.ajax({ url: "fetch/"+CHAT_SESSION_ID+"/"+LAST_MESSAGE_ID, dataType: "json", cache: ...
gust1n's user avatar
  • 133
2 votes
1 answer
3k views

Been using Solr 3.2 and the query delete function limits to 3 records so far. If I send in more than 3, will get the following error: Apache Tomcat/7.0.12 - Error report525D76;}--> HTTP Status 500 ...
david's user avatar
  • 107

15 30 50 per page