The libxo library allows an application to generate text, XML, JSON, and HTML output using a common set of function calls. The application decides at run time which output style should be produced.
$ xo --wrap "a/b/c" --json --pretty "{:name}{:value}\n" one a
"a": {
"b": {
"c": {
"name": "one",
"value": "a"
}
}
}
which isn't a complete json object. A "--object-wrapper" option should put the entire output inside a "{}" wrapper. This should be true for "--open" and "--close" as well.
which isn't a complete json object. A "--object-wrapper" option should put the entire output inside a "{}" wrapper. This should be true for "--open" and "--close" as well.