Function json_encode

Converts structure to a JSON string

This function converts a structure or a cell array to a JSON string representation. It supports encoding of structures, cell arrays strings and matrices. Both matrices and cell arrays are first converted to single dimension lists as JSON does not support multiple dimensions.

Input:

Output: