On 26 December 2016 at 07:23, JohnGB <
jgbe...@gmail.com> wrote:
> It *should* have a JSON body, but in this particular case I can't be sure
> that it will, as I'm trying to log requests when there are errors, which are
> quite often errors in the request. So although in some cases it is decoded
> later in the handler chain, I need to be able to log the string in a human
> readable form before any possible decoding.
>
> If it's unescaped as part of json.Unmarshal(), is there an exposed function
> in the encoding/json package which only unescapes a string? I've tried
> looking, but I can't find anything that I can call directly.