practicalswift
abf510740d
Force the use of the POSIX C locale for all commands and their subprocesses
7 years ago
Christian Decker
723b64036f
jsonrpc: Pretty-print the json results
Just a small cleanup of the indentation code, so we don't have to reformat all
the issue reports to become readable. This is much closer to what `jq` or
`json_pp` spit out and doesn't have those infinitely long lines.
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
practicalswift
7e9750ffee
Reduce variable scopes
7 years ago
Rusty Russell
7ae013202f
json: make json_add_string do partial escapes.
This is useful when we log a JSON-escaped string, so we don't double-escape.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
d92579f627
common/json_escaped: new type which explicitly notes a string is already JSON.
Trivial to use as a string, but it still means you should be careful
around it.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
7f03e15e03
json_add_string_escape: for escaping internally-generated strings.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Björge Dijkstra
648e4feee2
Extend json unit test with tests for json_tok_bitcoin_amount()
7 years ago
Rusty Russell
112ae0d0f5
common/test/run-json: test JSON escaping.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago