JSON Parser

版本 1.2.0.1 (2.4 KB) 作者: Joel Feenstra
Parses JSON strings into structures and cells
19.2K 次下载
更新时间 2016/9/1

查看许可证

This function parses JSON strings. It converts JSON arrays into cell arrays and JSON objects into structures.
This can be used with webervices that return JSON data such as the API provided by Google®.

An example of use is:
google_search = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q=matlab';
matlab_results = parse_json(urlread(google_search));
disp(matlab_results{1}.responseData.results{1}.titleNoFormatting)
disp(matlab_results{1}.responseData.results{1}.visibleUrl)

引用格式

Joel Feenstra (2024). JSON Parser (https://www.mathworks.com/matlabcentral/fileexchange/20565-json-parser), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.2.0.1

Updated license

1.2.0.0

Changed the description to properly reference Google®.

1.0.0.0