@onlabsorg/swan-js
Version:
A simple yet powerful expression language written in JavaScript
16 lines (10 loc) • 533 B
Markdown
json module
============================================================================
This module contains functions for parsing and serializing JSON data.
`json.parse: Text t -> Namespace ns`
------------------------------------------------------------------------
Converts a JSON string to a namespace.
`json.parse: Term t -> Text s`
------------------------------------------------------------------------
Converts a term to a JSON string. It returns `Undefined('Text')` if `t`
is a `Func` or an `Undefined` item.