On Tuesday, January 13, 2015, Anders Rundgren <[email protected]>
wrote:
> The spec claims the following:
>
> "Note that since these strings contain base64 encoded
> (not base64url encoded) values, they are allowed to contain
> white space and line breaks."
>
> Is this really JSON compliant?
>
> I didn't interpret the JSON spec in that way and Python and Chrome seems
> to agree with me.
>
> What's I'm missing here?
Are you seriously suggesting that JSON strings can't contain white space?
Control characters have to be escaped, but they can definitely be there.
JSON.parse('["this is...\\u000A...a string"]')
--Richard
>
> Cheers
> Anders
>
> _______________________________________________
> jose mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/jose
>
_______________________________________________
jose mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/jose