DocumentationHelp Center
large
Convert a character vector or string in MATLAB Production Server JSON schema to MATLAB data
data = mps.json.decode(text)
example
data = mps.json.decode(text) parses JSON schema for MATLAB® Production Server™ to convert it to MATLAB data.
data
text
collapse all
mps.json.decode('[[8,1,6],[3,5,7],[4,9,2]]')
ans = 8 1 6 3 5 7 4 9 2
mps.json.decode('{"mwdata":[1,4,3,2],"mwsize":[2,2],"mwtype":"double"}')
ans = 1 3 4 2
JSON following the schema for MATLAB Production Server, specified as a character vector or string.
text can be in various formats like small, large, NaNInfType, and PrettyPrint, as explained in Name-Value Pair Arguments on the mps.json.encode page.
small
NaNInfType
PrettyPrint
mps.json.encode
MATLAB data decoded from MATLAB Production Server JSON text returned as the data-type encoded in text.
mps.json.decoderesponse | mps.json.encode | mps.json.encoderequest
mps.json.decoderesponse
mps.json.encoderequest
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office
Get trial now