Parse JSON text

Convert data from JSON format to a MATLAB-usable variable.
4.5K Downloads
Updated 17 Mar 2014

View License

Implemented as a MATLAB class, this file quickly and conveniently turns incoming streams of text into useful data for your MATLAB workspace.
This submission also contains an example/ directory and a test/ directory containing unit tests.

Cite As

Joe Hicklin (2024). Parse JSON text (https://www.mathworks.com/matlabcentral/fileexchange/42236-parse-json-text), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired: OpenSignals File Format Reader for BITalino

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.4.0.0

Fixed bugs described by Guy.
Numeric fields equal to the ASCII codes for special characters like {}[]: and , no longer fail.
Field names that start with numbers get an "s" prepended to them to form valid MATLAB fields.
Thanks Guy!

1.1.0.0

Minor update.