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.
22 questions
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:
...
4
votes
1
answer
218
views
Items response empty after article POST request
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":[],...
3
votes
0
answers
76
views
Ability to support json type for post request
Right now we it uses url encode to post authenticated request. Maybe an option for application json?
2
votes
0
answers
332
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 ...
4
votes
0
answers
147
views
Byte Order Mark suddenly appearing in query results
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.
3
votes
1
answer
181
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 ...
1
vote
2
answers
594
views
Get API responses in formats other than JSON
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 ...
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. ...
1
vote
1
answer
232
views
JSON parsing, won't work
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....
2
votes
0
answers
161
views
String formatting in returned JSON objects
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 ...
2
votes
1
answer
164
views
What's the best way to get all available data related to a user's reputation?
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/...
3
votes
0
answers
175
views
Stack Cartographer - A PHP tool for generating a JSON map of the Stack Exchange API.
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 ...
8
votes
1
answer
3k
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):
"...
6
votes
2
answers
252
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 ...
2
votes
1
answer
909
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
...