IOUtils

Usage

use IOUtils;

or

import IOUtils;
proc formatJson(input) : string throws

Format an argument as a JSON string

proc formatJson(input: string, vals ...?) : string throws
proc jsonToArray(json: string, type t, size: int) throws

Deserialize a Chapel array of strings from a JSON string

proc parseJson(json: string, type t) : t throws

Helper function to parse a JSON string as an item of the given type

proc parseJson(json: string, param n: int, type t) : n*t throws