Commit 7249cebe authored by l2m2's avatar l2m2

upload.

parent d71f3889
var _hocon = require("topsin.hocon"); var _hocon = require("topsin.hocon");
var strs = []; var str = " a: 'a' ";
strs.push(" \ var r = _hocon.parseString(str);
items: [ { a: 1 }, { b: 2} ], \ print(JSON.stringify(r));
name: \"a1\" \
");
strs.push(" \
{ \
\"items\" : [ {\"c\": 2} ], \
\"name\": \"a2\" \
} \
");
var r = _hocon.parseStrings(strs); str = " a: [ 'a' ] ";
print(r); r = _hocon.parseString(str);
\ No newline at end of file print(JSON.stringify(r));
str = " a: { key : 'value' } ";
r = _hocon.parseString(str);
print(JSON.stringify(r));
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment