Skip to main content

All Questions

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

JSONDecodeError: Expecting value: line 3 column 1 (char 3)

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
2 votes
0 answers
313 views

Array boolean values are returning empty

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
3 votes
1 answer
140 views

Java exception when user age or location is unspecified in returned JSON

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
1 answer
2k views

json with list of all user's on stackoverflow

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
8 votes
1 answer
2k views

Making use of the *"has_more": true* json attribute in the Json response from stackoverflow

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
185 views

OR operator for StackOverflow API

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
849 views

Any guarantees on JSON string encoding?

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
2 votes
5 answers
4k views

Get user data using curb/Curl in Ruby

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
5 votes
0 answers
541 views

Platforms Supported by the API and Response Compression

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
287 views

When API site goes offline, please return a JSON , instead of Stack Overflow alike offline HTML page

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