Skip to main content

Questions tagged [json]

JSON is a text-based open standard. It is human-readable and used for data interchange between applications. Use this tag for questions related to topics about using JSON.

Filter by
Sorted by
Tagged with
1 vote
1 answer
4k views

I am trying the following simple code to get JSON from the Stack Exchange API and it gives me the following error: JSONDecodeError: Expecting value: line 3 column 1 (char 3) Here is my script: ...
Sparkling_Sayena's user avatar
4 votes
1 answer
158 views

I'm trying to post an article using StackExchange's Teams API then try to pull that new article's id from the API response. The article gets posted but the items field is empty : {"items":[],...
GrassWarlock's user avatar
3 votes
0 answers
58 views

Right now we it uses url encode to post authenticated request. Maybe an option for application json?
Em as's user avatar
  • 31
2 votes
0 answers
313 views

I am trying to convert a JSON array to a PHP array, and the boolean values are being lost. I think I need to loop round using foreach() and cast the items as they are placed in to the new array, but I ...
EntityPaul's user avatar
4 votes
0 answers
120 views

Query results seem to have started including BOMs sometime today. I had to add code to handle it. I don't see this documented anywhere.
Dennis Williamson's user avatar
3 votes
1 answer
137 views

I am brand new to the Stack Exchange API and Android (well, self taught in the last four months). I have been working on creating a school project focused around Android and JSON. My initial idea was ...
gamermom's user avatar
1 vote
2 answers
442 views

I am working on an application which uses the Stack Exchange API. But I don't want responses in JSON format. So, if I want to convert JSON to another format like XML, is there any way to get the ...
user2058320's user avatar
1 vote
1 answer
2k views

I am trying to get the list of all user's in JSON format (as provided by the API) (using jQuery jsonp) What I found is: pagesize – The number of collection results to display during pagination. ...
JAVAGeek's user avatar
  • 113
1 vote
1 answer
200 views

I'm using the Stack Apps API. Retrieving questions by tags works well, and the JSON is returned. Now I need to parse the JSON and there is something wrong with my code: $.ajax({ url: 'http://api....
Filippo oretti's user avatar
2 votes
0 answers
133 views

So I sat down this evening to play with the Stack Exchange API. I downloaded RestSharp, and used it to call the API. One thing the struck me was how strings are formatted, with regards to non-ASCII ...
Jörgen Sigvardsson's user avatar
2 votes
1 answer
109 views

I'm looking for the best way to get a full list of every event which has caused a user's reputation to change, It could look like: timestamp,reputation_change,object_uri 2011-01-25 14:58:27Z,10,/ajax/...
sente's user avatar
  • 121
3 votes
0 answers
151 views

About After the JSON documentation for the Stack Exchange API was dropped for v2.0, I began to wonder if it would be possible to throw together a PHP script that did a bit of screen-scraping to ...
Nathan Osman's user avatar
  • 23.3k
8 votes
1 answer
2k views

When issuing requests to the stackoverflow-api, I set the pagesize to a 100 (which is the maximum possible). However, some json responses contain this attribute (normally at the very bottom): "...
savagius's user avatar
6 votes
2 answers
184 views

I'm trying to get a list of questions from the SO API for a number of tags, At the moment I am using the ; operator to separate the tags in the URL but the thing is this only brings up questions that ...
mylesagray's user avatar
2 votes
1 answer
833 views

According to the JSON specification, JSON can be returned in one of five string encodings: UTF-8 (the default encoding) UTF-16 Little Endian UTF-16 Big Endian UTF-32 Little Endian UTF-32 Big Endian ...
Dave DeLong's user avatar
  • 5,264
3 votes
2 answers
441 views

I'm trying to use Stacky to grab a question from Stackoverflow, however I always an error. The error thrown is: JsonReaderException was unhandled - Unexpected character encountered while parsing ...
AndrewC's user avatar
  • 133
0 votes
1 answer
105 views

Not exactly sure how or why, but many times when I try and preview some URL, I get garbage. This has happened on several JSON preview websites as well as on my browser. Strangely this isn't all the ...
TheLQ's user avatar
  • 150
2 votes
5 answers
4k views

I am trying to get user data in my Rails app. I am doing this: url_so = "http://api.stackoverflow.com/1.0/users/231917?type=jsontext" curl = Curl::Easy.new(url_so) curl.perform data_obj = ...
zengr's user avatar
  • 193
3 votes
3 answers
3k views

This is a very basic question. I just want to display a test batch of JSON with PHP, but I think I don't have the correct formatting, since the data received looks garbled when outputed, and it causes ...
Peter Ajtai's user avatar
5 votes
0 answers
532 views

What platforms are supported for use with the Stack Exchange API? In short, anything that can make a GET request to the API servers and supports JSON/JSONP & GZIP. (JavaScript, Python, PHP, Java, ...
Kevin Montrose's user avatar
38 votes
1 answer
284 views

I've just noticed that my API queries are failing in JSON parsing, because of API Site shows offline HTML Page. I wish it would return a valid JSON response, instead of HTML Page.
YOU's user avatar
  • 5,022
7 votes
2 answers
1k views

When running the code $.getJSON('http://api.stackoverflow.com/0.8/questions/4', function(data) { // Do some stuff here.... }); I get the error Failed to load resource Am I accessing this wrong?
Kredns's user avatar
  • 213