Mex wrapper to C++ class for fast reading and writing of JSON files
634 téléchargements
Mise à jour 13 avr. 2017

Afficher la licence

These function wrap Niels Lohmann's JSON for Modern C++ class into mex wrappers, for fast reading of JSON files into MATLAB variables, and writing MATLAB variables into JSON files.
JSON for Modern C++ must be downloaded separately from:

Mex these functions by calling:
mex json_read.cpp
mex json_write.cpp
Note that your C++ compiler must support C++11.

Example usage: var = json_read(filename)
filename - String of filename (if in current directory) or full or relative path to the JSON file to be read in.
var - MATLAB interpretation of the JSON data.

Citation pour cette source

Oliver Woodford (2024). C++ JSON IO (https://www.mathworks.com/matlabcentral/fileexchange/59166-c-json-io), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2016a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version

Update description
Added json_write

Add new paragraph
Removed JSON library from file for licensing reasons. Must now be dowloaded separately.