- From: Shannon Poole <notifications@github.com>
- Date: Tue, 08 Oct 2019 12:48:36 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 8 October 2019 19:48:38 UTC
Just to provide a use case for JSON in particular not having a .json extension would be REST APIs. I imagine there would be a good use case for fetching JSON in SPAs. > I’m not sure how that’s truly avoidable though, given the web’s insistence that the consumer (instead of the author) should dictate the parse goal/format. I believe the main issue described here is that there is often a middle layer here. Where a request may be served by a third party. Both the consumer and the author should be able to specify which parse goal they intend. FWIW as an outside observer, a URL scheme seems appropriate to me. It's very similar to tooling such as webpack using `json-loader!./file.json`. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/839#issuecomment-539673185
Received on Tuesday, 8 October 2019 19:48:38 UTC