Functions - jsonutils

fromTable

Converts a table to its json representation.

fromXML

Converts an XML object to its JSON representation.

fromTable

(table tbl)

returns json

Converts a table to its json representation.

Parameters

  • tbl table
  • The source table

  • Return Type

    (json)
  • JSON representation of source table

fromXML

(xml x, XmlOptions options)

returns json | error

Converts an XML object to its JSON representation.

Parameters

  • x xml
  • The xml source

  • options XmlOptions (default {})
  • XmlOptions record for XML to JSON conversion properties

  • Return Type

    (json | error)
  • JSON representation of the given XML, or an error if the conversion fails