Skip to main content
Version: 0.10.0

Json

import core.json

parse

Return Type: Map

Parameters:

  • json: String

Parse a json string into a map.

Example:

import core.json 

let str_json = '{ "key": "value" }'
print(json.parse(str_json))

stringify

Return Type: String

Parameters:

  • map: Map

Get a json string from a map.

Example:

import core.json

let map = { key = "value" }
print(json.stringify(map))