JSON

バージョン 1.0.1 (20.8 KB) 作成者: Rik
Matlab/Octave JSON parser
ダウンロード: 156
更新 2022/1/22

This interprets char array as JSON and returns an object the same size and shape as the Matlab builtin. There are many other JSON parsers for Matlab, but many have only a small range of compatibility, fail for many test cases of valid (or invalid) syntax, extend the standard, or do all three at once. This was created to have a relatively compact reader that will work for normal JSON on Matlab and Octave for a wide range of releases.

This was implemented using the ECMA JSON syntax standard. The failing and passing cases were validated using the test cases from a JSON test suite on GitHub, containing over 300 cases of possibly ambiguous syntax. Because the standard is not explicit for every situation, there are also test cases left to the interpreter.

Note that this doesn't read a JSON file, but only parses the result. I'm of the opinion that a JSON parser should only parse JSON, and not do other things.

Licence: CC by-nc-sa 4.0

引用

Rik (2024). JSON (https://github.com/thrynae/JSON/releases/tag/v1.0.1), GitHub. 取得済み .

MATLAB リリースの互換性
作成: R2021b
R13SP1 以降のリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.1

See release notes for this release on GitHub: https://github.com/thrynae/JSON/releases/tag/v1.0.1

1.0.0

この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。
この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。