本文介绍了是否有任何可公开访问的JSON数据源可用于测试实际数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究JavaScript动态加载的树形视图用户控件.我想用现实世界的数据进行测试.

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

有人知道任何公共服务都带有API,该API提供对JSON格式的分层数据的访问权吗?

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

推荐答案

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

编辑:已删除,因为Twitter受OAUTH要求限制了其API ...

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}]}

使用 Github API 的简单示例替换它-在此返回一个树案例,我的存储库...

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

我不会包含输出,因为它很长..(一次返回30个存储库)...但这是树状证据.

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.

这篇关于是否有任何可公开访问的JSON数据源可用于测试实际数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 17:44