Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3    Statistic    FMM    Blog  


Returns a row as JSON object.

Component Version macOS Windows Linux Server iOS SDK License
Matrix 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes Paid
MBS( "Matrix.JSONRecord"; MatrixRef; Row { ; FieldNames; Flags } )   More


Parameter Description Example Flags
MatrixRef The matrix reference number. $matrix
Row The row you like to get. 1
FieldNames A list of field names for the JSON. "Model¶Names" Optional
Flags The flags for the json creation.
Pass 1 to get all values as text.
Pass 2 to get all dates, times and timestamps in SQL format.
Pass 4 to get arrays instead of objects for the individual rows.
Pass 8 to get containers as objects with name, size and data entries. (new in v12.1)
1+2 Optional


Returns JSON text or error.


Returns a row as JSON object.
You provide list of field names, which should be in same order as fields in matrix.
Optionally we can return SQL dates, times and timestamps as SQL format.
Containers are returned as Base64 encoded data.


Query JSON:

Set Variable [ $JSON ; Value: MBS( "Matrix.JSONRecord"; $result; 1; "a¶b¶c" ) ]

See also

Release notes

Blog Entries

Created 8th April 2019, last changed 9th May 2022

Matrix.InsertRecordsToSQL - Matrix.JSONRecords

Feedback: Report problem or ask question.

Start Chat