在哪里可以找到用于测试的预填充 json 文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10942816/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 18:22:26  来源:igfitidea点击:

Where can I find a pre-populated json file for testing?

jsontesting

提问by Matt

I am building an application that can import JSON data, I want to test about 10k entries, and I don't feel like building a JSON string with that many entries.... so does anyone have a location where I could find some generic populated JSON files? (Music Albums / Movie Listings / Animal Kingdom / Census data / Car Models... I'm not horribly picky, I just need some good data to test with.)

我正在构建一个可以导入 JSON 数据的应用程序,我想测试大约 10k 个条目,我不想构建一个包含那么多条目的 JSON 字符串......填充的 JSON 文件?(音乐专辑/电​​影列表/动物王国/人口普查数据/汽车模型......我不是很挑剔,我只需要一些好的数据来测试。)

回答by user1745124

This is a site that is in beta that can give you data in JSON, XML or CSV. All lists are customizable. This is a sample call: http://mysafeinfo.com/api/data?list=englishmonarchs&format=jsonDocumentation here: http://mysafeinfo.com/content/documentation; See a full list under Datasets on the main menu

这是一个处于测试阶段的站点,可以为您提供 JSON、XML 或 CSV 格式的数据。所有列表都是可定制的。这是一个示例调用:http: //mysafeinfo.com/api/data?list=englishmonarchs&format= json文档在这里:http: //mysafeinfo.com/content/documentation;查看主菜单上数据集下的完整列表

回答by sathish_at_madison

There are few websites that have raw data that can be customized to a JSON format. Here is a link for some raw data information Data

很少有网站拥有可以自定义为 JSON 格式的原始数据。这是一些原始数据信息的链接Data

回答by Alex W

Vienna's Open Data websiteprovide various databases. For example, their Tree register

维也纳的开放数据网站提供各种数据库。例如,他们的树寄存器

Edit:

编辑:

The old link is dead. A great place to find test data is Socrata which aggregates government data. There's plenty of data to test with:

旧链接已死。查找测试数据的好地方是 Socrata,它汇总了政府数据。有大量数据可供测试:

https://dev.socrata.com/data/

https://dev.socrata.com/data/

If you look through the catalogs, there's usually a JSON export option. Here's an examplefrom the National Service for Age Group and volunteering.

如果您查看目录,通常会有一个 JSON 导出选项。 这是国家年龄组服务和志愿服务的一个例子