Home: https://github.com/asmagill/mjolnir_asm.data
This module provides JSON encoding and decoding for Mjolnir utilizing the NSJSONSerialization functions available in OS X 10.7 +
This module is based partially on code from the previous incarnation of Mjolnir by Steven Degutis.
This module also requires mjolnir._asm
for NSObject traversal.
mjolnir._asm.data.json.decode(str) -> val
Returns a Lua value representing the given JSON string.
Useful for retrieving some of the more complex lua table structures as a persistent setting.
mjolnir._asm.data.json.encode(val[, prettyprint?]) -> str
Returns a JSON string representing the given value; if prettyprint is true, the resulting string will formatted for readability. Value must be a table.
Useful for storing some of the more complex lua table structures as a persistent setting.