Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any publicly accessible JSON data source to test with real world data? [closed]

I'm working on a JavaScript dynamically loaded tree view user control. I'd like to test it with real world data.

Does anybody know any public service with an API that provides access to hierarchical data in JSON format?

like image 431
ILya Avatar asked Nov 28 '11 06:11

ILya


People also ask

Where can we use JSON format in real life situations?

JavaScript Object Notation (JSON) is a standard text-based format for representing structured data based on JavaScript object syntax. It is commonly used for transmitting data in web applications (e.g., sending some data from the server to the client, so it can be displayed on a web page, or vice versa).

Is JSON file real time?

JSON was created out of the need to send data from the server (a database, for example) to the client (browsers) in real-time. But JSON data can't be transmitted to the browser in its raw key:value pair form, so programming languages have methods for manipulating JSON data.

Is JSON a data source?

The JSON data source parses the input JSON expression by using JSONPath and populates the specified properties with the parsed values. In this topic, we focus on how to configure the JSON data source. We assume you are already familiar with data-driven testing and how to configure a data-driven loop.

Is JSON open source specification?

JSON (JavaScript Object Notation, pronounced /ˈdʒeɪsən/; also /ˈdʒeɪˌsɒn/) is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of attribute–value pairs and arrays (or other serializable values).


2 Answers

Twitter has a public API which returns JSON, for example -

A GET request to:

https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=mralexgray&count=1,

EDIT: Removed due to twitter restricting their API with OAUTH requirements...

{"errors": [{"message": "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.", "code": 68}]} 

Replacing it with a simple example of the Github API - that returns a tree, of in this case, my repositories...

https://api.github.com/users/mralexgray/repos

I won't include the output, as it's long.. (returns 30 repos at a time) ... But here is proof of it's tree-ed-ness.

enter image description here

like image 167
Alex Gray Avatar answered Sep 21 '22 17:09

Alex Gray


JSON Test has some

try its free and has other features too.

http://www.jsontest.com/

like image 30
Venusdharan Avatar answered Sep 21 '22 17:09

Venusdharan