Help language development. Donate to The Perl Foundation

JSON::Hjson cpan:AKIYM last updated on 2020-07-09

t/testCases/stringify1_test.hjson
// test if stringify produces correct output
{
  quotes:
  {
    num1: "1,2"
    num2: "-1.1 ,"
    num3: "1e10 ,2"
    num4: "-1e-10,"
    kw1: "true,"
    kw2: "false ,"
    kw3: "null,123"
    close1: "1 }"
    close2: "1]"
    comment1: "1#str"
    comment2: "1//str"
    comment3: "1/*str*/"
  }
  noquotes:
  {
    num0: ".1,2"
    num1: "1.1.1,2"
    num2: "-.1,"
    num3: "1e10e,2"
    num4: "-1e--10,"
    kw1: "true1,"
    kw2: "false0,"
    kw3: "null0,"
    close1: "a}"
    close2: "a]"
    comment1: "a#str"
    comment2: "a//str"
    comment3: "a/*str*/"
  }
}