Main Content

JSON Format

JavaScript® Object Notation format

JavaScript Object Notation (JSON) is a data interchange format based on the JavaScript programming language. You can decode and encode JSON-formatted text. You can also import data from a JSON file into MATLAB® as a structure and write the contents of a structure to a JSON file.

Functions

jsondecodeDecode JSON-formatted text
jsonencodeCreate JSON-formatted text from structured MATLAB data
readstructCreate structure array from file (Since R2020b)
writestructWrite structure array to file (Since R2020b)

Topics