mirror of
https://github.com/google/go-jsonnet.git
synced 2026-04-15 18:31:27 +02:00
minimal repo: https://play.golang.org/p/GQBNMe6k_nm https://stackoverflow.com/questions/28595664/how-to-stop-json-marshal-from-escaping-and\nminimal fix proof: https://play.golang.org/p/SJM3KLkYW- resolves #423
22 lines
320 B
Jsonnet
22 lines
320 B
Jsonnet
local a = {
|
|
foo: "bar",
|
|
bar: self.foo,
|
|
baz: 1,
|
|
bazel: 1.42,
|
|
boom: -1,
|
|
bim: false,
|
|
bam: true,
|
|
blamo: {
|
|
cereal: [
|
|
"<>& fizbuzz",
|
|
],
|
|
|
|
treats: [
|
|
{
|
|
name: "chocolate",
|
|
}
|
|
],
|
|
}
|
|
};
|
|
|
|
std.manifestJsonEx(a, " ") |