Fix "for loop initial declarations are only allowed in C99 mode" compile errors.
json_escape: add fast-path for when we don't need to escape. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
json_escape: new module to escape JSON strings. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>