body>HTTP/1.1 200 OKServer: GlassFish Server Open Source Edition 4.1.2 X-Powered-By: Servlet/3.1 JSP/2.3 (GlassFish Server Open Source Edition 4.1.2 Java/Oracle Corporation/1.8) Set-Cookie: JSESSIONID=28f2fca7fe079610d5c47e75e876; Path=/; Secure; HttpOnly Set-Cookie: MW_Doc_Template=WEB||||||||||; Path=/help Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Pragma: no-cache Expires: Wed, 15 Aug 2018 10:43:10 EDT Content-Type: text/html;charset=utf-8 Date: Sat, 24 Aug 2019 07:37:38 GMT Transfer-Encoding: chunked 10042 Convert a character vector or string in MATLAB Production Server JSON schema to MATLAB data - MATLAB mps.json.decode - MathWorks Benelux

Documentation

mps.json.decode

Convert a character vector or string in MATLAB Production Server JSON schema to MATLAB data

Syntax

data = mps.json.decode(text)

Description

example

data = mps.json.decode(text) parses JSON schema for MATLAB® Production Server™ to convert it to MATLAB data.

Examples

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

Input Arguments

collapse all

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.

Output Arguments

collapse all

MATLAB data decoded from MATLAB Production Server JSON text returned as the data-type encoded in text.

Introduced in R2018a

0