C++ JSON IO

版本 2.0.0.0 (5.6 KB) 作者: Oliver Woodford
Mex wrapper to C++ class for fast reading and writing of JSON files
649.0 次下载
更新时间 2017/4/13

查看许可证

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:
https://github.com/nlohmann/json

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

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

引用格式

Oliver Woodford (2024). C++ JSON IO (https://www.mathworks.com/matlabcentral/fileexchange/59166-c-json-io), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2016a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 JSON Format 的更多信息
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
2.0.0.0

Update description
Added json_write

1.0.0.0

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