JSON, YAML, TOML and XML

Serialization and parsing of JSON, YAML, TOML and XML.

Serialization and parsing of JSON, YAML, TOML and XML. 27 entries. This page is generated from the MatchBox source; see the function reference index for how to read the tables and what each gate means.

FunctionFormsGateNotes
dataNavigatedataNavigate( ... )always
deserializeJSONdeserializeJSON( ... ), string.fromJSON( ... )alwaysParses a JSON string into structs, arrays and simple values.
deserializeTOMLdeserializeTOML( ... )alwaysParses a TOML string into structs, arrays and simple values.
deserializeYAMLdeserializeYAML( ... )alwaysParses a YAML string into structs, arrays and simple values.
isJSONisJSON( ... )alwaysReturns true when the string is valid JSON.
isXMLisXML( ... )alwaysReturns true for an XML document or a string of well-formed XML.
isXmlAttributeisXmlAttribute( ... )always
isXMLDocisXMLDoc( ... )always
isXMLElemisXMLElem( ... )always
isXmlElementisXmlElement( ... )always
isXMLNodeisXMLNode( ... )always
isXMLRootisXMLRoot( ... )always
jsonDeserializejsonDeserialize( ... )alwaysParses a JSON string.
jsonPrettifyjsonPrettify( ... )alwaysReformats a JSON string with indentation.
jsonSerializejsonSerialize( ... )alwaysConverts a value to a JSON string.
serializeJSONserializeJSON( ... ), array.toJSON( ... ), boolean.toJSON( ... ), number.toJSON( ... ), string.toJSON( ... ), struct.toJSON( ... )alwaysConverts a value to a JSON string.
toScripttoScript( ... )always
xmlChildPosxmlChildPos( ... ), xml.childPos( ... )always
xmlElemNewxmlElemNew( ... )always
xmlFormatxmlFormat( ... ), string.xmlFormat( ... ), xml.xmlFormat( ... )alwaysEscapes text for use in XML.
xmlGetNodeTypexmlGetNodeType( ... ), array.getNodeType( ... ), array.xmlGetNodeType( ... ), xml.getNodeType( ... )always
xmlNewxmlNew( ... )always
xmlParsexmlParse( ... )alwaysParses an XML string into an XML document.
xmlSearchxmlSearch( ... ), xml.search( ... )always
xmlSizexmlSize( ... ), xml.size( ... )always
xmlTransformxmlTransform( ... ), xml.transform( ... )always
xmlValidatexmlValidate( ... )always
Edit this page Download Markdown Last updated Oct 27, 2026, 1:45:34 PM Report an issue