JSON Format
JavaScript® Object Notation format
JavaScript Object Notation (JSON) is a data interchange format based on the JavaScript programming language. In MATLAB®, you can decode and encode JSON-formatted text. You can also import data from a JSON file into MATLAB as a structure (since R2023b), dictionary (since R2024b), table (since R2026a), or timetable (since R2026a). You can write the contents of a structure, dictionary, table, or timetable to a JSON file.
Functions
Topics
- Customize JSON Encoding for MATLAB Classes
Override the
jsonencodefunction for user-defined classes.