W3C home > Mailing lists > Public > public-linked-json@w3.org > August 2015

Re: Trailing content in JSON-LD

From: james anderson <james@dydra.com>
Date: Sun, 23 Aug 2015 11:01:44 +0000
Message-ID: <0000014f5a389e9e-b1adacec-ccfd-40d0-80a7-cb46242e0ffe-000000@eu-west-1.amazonses.com>
To: Linked JSON <public-linked-json@w3.org>
good evening;

> On 2015-08-23, at 12:33, Timothy W. Cook <tim@mlhim.org> wrote:
> 
> 
> […]
> 
> Whether it should be a parser error I am not sure.  I would say that parsers should ignore anything in a file or a stream that comes after the document.  It is irrelevant to the document.  Maybe it is something sent for other processing?  Maybe the JSON is embedded in another file? 

even if not a “parser error”, it may also be the case, that the subsequent content appears so only because there is a syntax error in the content which precedes the last ‘}’  - or perhaps even the ‘}’ is one of an inadvertent ‘}}’.

for protocols over http, which offers little in the way of standard reporting channels, the safest response in that case would be some form of ‘400’ response error.

best regards, from berlin,
---
james anderson | james@dydra.com | http://dydra.com






Received on Sunday, 23 August 2015 11:02:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:18:45 UTC