Re: structured headers "why not JSON" FAQ

On 2018-06-13 10:01, Mark Nottingham wrote:
> ...
>> Please elaborate. What are the difficulties, and how is this different in structured headers?
> 
> How can you use ABNF to define the allowable structures in JFV? See the editors' draft of SH for an example there (a work in progress).

Precisely which part?

>>>     Need to encode JSON to appear in HTTP headers, thereby making it not-JSON
>>
>> Not true.
> 
> I'll change this to "Need to process JSON to assure that characters are escaped in a manner that's appropriate for HTTP headers."

Either that, or use a serializer where the encoding (and whitespace 
handling) can be configured.

<https://greenbytes.de/tech/webdav/draft-reschke-http-jfv-08.html#rfc.section.3>

> ...

Best regards, Julian

Received on Wednesday, 13 June 2018 08:34:14 UTC