W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2015

JSON imports?

From: Glen Huang <curvedmark@gmail.com>
Date: Fri, 17 Apr 2015 11:34:50 +0800
Message-Id: <14FED0B8-613C-4931-92EE-7C11FC3F1F4E@gmail.com>
To: Webapps WG <public-webapps@w3.org>
Inspired by HTML imports, can we add JSON imports too?

```html
<script type="application/json" src="foo.json" id="foo"></script>
<script type="application/json" id="bar">
{ "foo": "bar" }
</script>
```

```js
document.getElementById("foo").json // or whatever
document.getElementById("bar").json
```
Received on Friday, 17 April 2015 03:35:31 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:27:31 UTC