go-jsonnet/testdata/builtin_escapeStringJson.jsonnet
Johannes Gräger dec1aa2be3
feat: Go implementation for manifestYamlDoc and escapeStringJson (#742)
* Builtins for escapeStringJson and manifestYamlDoc

* Benchmark and tests
2024-06-09 19:27:15 +01:00

18 lines
272 B
Jsonnet

std.map(std.escapeStringJson, [
"",
"\"quoted string\"",
"backslash \\",
"new\nline",
"tab\tcharacter",
"controler\r\fcharacters\r\f",
null,
"null",
1.42,
[1,2,3],
{a:1,b:2,c:3},
true,
false,
"true",
"false",
])