Module z_json

JSON support routines.

Copyright 2012 Marc Worrell

Authors: Marc Worrell.

Description

JSON support routines.

Function Index

from_mochijson/2Convert a (nested) JSON document to nested property lists Properties are not converted to.
json_escape/1JSON escape for safe quoting of JSON strings.
to_mochijson/2Convert a (nested) property to mochijson:encode/1 format.

Function Details

from_mochijson/2

from_mochijson(N, Context) -> any()

Convert a (nested) JSON document to nested property lists Properties are not converted to

json_escape/1

json_escape(Value) -> any()

JSON escape for safe quoting of JSON strings. Subtly different from JS escape, see http://www.json.org/

to_mochijson/2

to_mochijson(PS, Context) -> any()

Convert a (nested) property to mochijson:encode/1 format. Select the language in the context for {trans, _} values.


Generated by EDoc, Nov 26 2014, 15:39:37.