# How to import data from json file to ember app

**URL:** <https://discuss.emberjs.com/t/how-to-import-data-from-json-file-to-ember-app/9917>\
**Category:** Ember Data\
**Created:** [February 24, 2016, 7:47pm UTC](https://discuss.emberjs.com/t/how-to-import-data-from-json-file-to-ember-app/9917 "2016-02-24T19:47:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sameed\_Baqai](https://avatars.discourse-cdn.com/v4/letter/s/71e660/32.png) [@Sameed\_Baqai](https://discuss.emberjs.com/u/Sameed_Baqai)\
**Post date:** [February 24, 2016, 7:47pm UTC](https://discuss.emberjs.com/t/how-to-import-data-from-json-file-to-ember-app/9917/1 "2016-02-24T19:47:42Z")

</div>

Hello I am kinda newbie and I am looking to import data I have in my own made json saved at public folder. Can anyone help me how can Import data. here is what my data looks like:

{ “page1”:[{ “url”:“images/pic1.jpg”, “paragraph”:“Some text over picture” }] }

---

<div class="post-metadata">

**Author:** ![ahx](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/ahx/32/14322_2.png) [@ahx](https://discuss.emberjs.com/u/ahx)\
**Post date:** [February 24, 2016, 8:21pm UTC](https://discuss.emberjs.com/t/how-to-import-data-from-json-file-to-ember-app/9917/2 "2016-02-24T20:21:45Z")

</div>

Hi @Sameed_Baqai, the best place to load data is from a Route’s `model` hook. For more information about routes please have a look at [the guides](https://guides.emberjs.com/v2.3.0/routing/specifying-a-routes-model/) .

For a start I would recommend that you start without Ember-Data, especially if your App has read-only data only. Just load the data via `Ember.$.getJSON` (see beneath) and try to render the data inside a template or use the Ember inspector to see what’s happening.

```auto
export default Ember.Route.extend({
  model() {
     return Ember.$.getJSON("myurl.json");
  }
});

```

---

<div class="post-metadata">

**Author:** ![Sarath](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/sarath/32/12009_2.png) [@Sarath](https://discuss.emberjs.com/u/Sarath)\
**Post date:** [February 25, 2016, 10:59am UTC](https://discuss.emberjs.com/t/how-to-import-data-from-json-file-to-ember-app/9917/3 "2016-02-25T10:59:11Z")

</div>

If the JSON is not a model for a route, then you just keep that in a file (which is static ) and import that file into the route
