Add manifestJson and manifestYaml functions
jsonnet's `std.toString()` returns "compact" JSON. Sometimes this is not appropriate, particularly when generating large output that might need to be viewed/debugged by a human. This change implements manifestYaml and manifestJson functions, which generate YAML and "pretty" JSON respectively. A slight implementation wrinkle is that libjsonnet currently only supports passing primitive (scalar) types to native functions, so these arguments need to be JSON-serialised/unserialised across the native function call boundary.
Please register or sign in to comment