Home

Awesome

JSONio: a MATLAB/Octave JSON library

GitHub MATLAB Octave

JSONio is a MATLAB/Octave library to read/write data in the JSON (JavaScript Object Notation) data-interchange format.

It relies on the excellent JSON parser jsmn written by Serge Zaitsev:

INSTALLATION

Simply add the JSONio directory to the MATLAB path:

addpath /home/login/Documents/MATLAB/JSONio

A compiled MEX file is provided for 64-bit MATLAB platforms. It needs to be compiled for Octave with:

mkoctfile --mex jsonread.c jsmn.c -DJSMN_PARENT_LINKS

EXAMPLE

json = jsonread(filename)

jsonwrite(filename, json)