{"action":"created","issue":{"url":"https://api.github.com/repos/perak/kitchen-site/issues/104","labels_url":"https://api.github.com/repos/perak/kitchen-site/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/perak/kitchen-site/issues/104/comments","events_url":"https://api.github.com/repos/perak/kitchen-site/issues/104/events","html_url":"https://github.com/perak/kitchen-site/issues/104","id":85375287,"number":104,"title":"Loading data into json file","user":{"login":"lancefb","id":6227839,"avatar_url":"https://avatars.githubusercontent.com/u/6227839?v=3","gravatar_id":"","url":"https://api.github.com/users/lancefb","html_url":"https://github.com/lancefb","followers_url":"https://api.github.com/users/lancefb/followers","following_url":"https://api.github.com/users/lancefb/following{/other_user}","gists_url":"https://api.github.com/users/lancefb/gists{/gist_id}","starred_url":"https://api.github.com/users/lancefb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lancefb/subscriptions","organizations_url":"https://api.github.com/users/lancefb/orgs","repos_url":"https://api.github.com/users/lancefb/repos","events_url":"https://api.github.com/users/lancefb/events{/privacy}","received_events_url":"https://api.github.com/users/lancefb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-05T02:02:55Z","updated_at":"2015-06-05T10:16:20Z","closed_at":null,"body":"If I want to load some data into a collection, using your example-dataview.json for instance with this:\r\n```\r\ndata = [\r\n  {\"name\":\"Essie Vaill\",\"phone\":\"907-345-0962\",\"email\":\"essie@vaill.com\",\"note\":\"http://www.essievaill.com\",\"active\":true},\r\n  {\"name\":\"Cruz Roudabush\",\"phone\":\"602-252-4827\",\"email\":\"cruz@roudabush.com\",\"note\":\"http://www.cruzroudabush.com\",\"active\":true},\r\n  {\"name\":\"Billie Tinnes\",\"phone\":\"212-889-5775\",\"email\":\"billie@tinnes.com\",\"note\":\"http://www.billietinnes.com\",\"active\":true},\r\n  {\"name\":\"Rosemarie Fifield\",\"phone\":\"808-836-8966\",\"email\":\"rosemarie@fifield.com\",\"note\":\"http://www.rosemariefifield.com\",\"active\":true},\r\n  {\"name\":\"Bernard Laboy\",\"phone\":\"815-467-0487\",\"email\":\"bernard@laboy.com\",\"note\":\"http://www.bernardlaboy.com\",\"active\":true},\r\n  {\"name\":\"Sue Haakinson\",\"phone\":\"602-953-2753\",\"email\":\"sue@haakinson.com\",\"note\":\"http://www.suehaakinson.com\",\"active\":true},\r\n  {\"name\":\"Valerie Pou\",\"phone\":\"610-395-8743\",\"email\":\"valerie@pou.com\",\"note\":\"http://www.valeriepou.com\",\"active\":true},\r\n  {\"name\":\"Lashawn Hasty\",\"phone\":\"626-960-6738\",\"email\":\"lashawn@hasty.com\",\"note\":\"http://www.lashawnhasty.com\",\"active\":true},\r\n]\r\n```\r\nwhere and how would I arrange it?"},"comment":{"url":"https://api.github.com/repos/perak/kitchen-site/issues/comments/109250242","html_url":"https://github.com/perak/kitchen-site/issues/104#issuecomment-109250242","issue_url":"https://api.github.com/repos/perak/kitchen-site/issues/104","id":109250242,"user":{"login":"perak","id":5630814,"avatar_url":"https://avatars.githubusercontent.com/u/5630814?v=3","gravatar_id":"","url":"https://api.github.com/users/perak","html_url":"https://github.com/perak","followers_url":"https://api.github.com/users/perak/followers","following_url":"https://api.github.com/users/perak/following{/other_user}","gists_url":"https://api.github.com/users/perak/gists{/gist_id}","starred_url":"https://api.github.com/users/perak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perak/subscriptions","organizations_url":"https://api.github.com/users/perak/orgs","repos_url":"https://api.github.com/users/perak/repos","events_url":"https://api.github.com/users/perak/events{/privacy}","received_events_url":"https://api.github.com/users/perak/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T10:16:20Z","updated_at":"2015-06-05T10:16:20Z","body":"If you want to insert data **once** at application startup, you can simply add following file anywhere in your applications `/server/` directory:\r\n\r\n```\r\nMeteor.startup(function() {\r\n  var data = [\r\n  {\"name\":\"Essie Vaill\",\"phone\":\"907-345-0962\",\"email\":\"essie@vaill.com\",\"note\":\"http://www.essievaill.com\",\"active\":true},\r\n  {\"name\":\"Cruz Roudabush\",\"phone\":\"602-252-4827\",\"email\":\"cruz@roudabush.com\",\"note\":\"http://www.cruzroudabush.com\",\"active\":true},\r\n  {\"name\":\"Billie Tinnes\",\"phone\":\"212-889-5775\",\"email\":\"billie@tinnes.com\",\"note\":\"http://www.billietinnes.com\",\"active\":true},\r\n  {\"name\":\"Rosemarie Fifield\",\"phone\":\"808-836-8966\",\"email\":\"rosemarie@fifield.com\",\"note\":\"http://www.rosemariefifield.com\",\"active\":true},\r\n  {\"name\":\"Bernard Laboy\",\"phone\":\"815-467-0487\",\"email\":\"bernard@laboy.com\",\"note\":\"http://www.bernardlaboy.com\",\"active\":true},\r\n  {\"name\":\"Sue Haakinson\",\"phone\":\"602-953-2753\",\"email\":\"sue@haakinson.com\",\"note\":\"http://www.suehaakinson.com\",\"active\":true},\r\n  {\"name\":\"Valerie Pou\",\"phone\":\"610-395-8743\",\"email\":\"valerie@pou.com\",\"note\":\"http://www.valeriepou.com\",\"active\":true},\r\n  {\"name\":\"Lashawn Hasty\",\"phone\":\"626-960-6738\",\"email\":\"lashawn@hasty.com\",\"note\":\"http://www.lashawnhasty.com\",\"active\":true},\r\n];\r\n\r\n  _.each(data, function(item) {\r\n     Customers.insert(item);\r\n  });\r\n\r\n});\r\n```\r\n"}}