Parse JSON text

Convert data from JSON format to a MATLAB-usable variable.
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 (, MATLAB Central File Exchange. Retrieved .

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

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

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!

Minor update.