Commit 7249cebe authored by l2m2's avatar l2m2

upload.

parent d71f3889
var _hocon = require("topsin.hocon");
var strs = [];
strs.push(" \
items: [ { a: 1 }, { b: 2} ], \
name: \"a1\" \
");
strs.push(" \
{ \
\"items\" : [ {\"c\": 2} ], \
\"name\": \"a2\" \
} \
");
var str = " a: 'a' ";
var r = _hocon.parseString(str);
print(JSON.stringify(r));
var r = _hocon.parseStrings(strs);
print(r);
\ No newline at end of file
str = " a: [ 'a' ] ";
r = _hocon.parseString(str);
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