{"action":"closed","issue":{"url":"https://api.github.com/repos/artf/grapesjs/issues/159","repository_url":"https://api.github.com/repos/artf/grapesjs","labels_url":"https://api.github.com/repos/artf/grapesjs/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/artf/grapesjs/issues/159/comments","events_url":"https://api.github.com/repos/artf/grapesjs/issues/159/events","html_url":"https://github.com/artf/grapesjs/issues/159","id":242450342,"number":159,"title":"Issue receiving loaded data from remote storage.","user":{"login":"brandonburr86","id":29148060,"avatar_url":"https://avatars3.githubusercontent.com/u/29148060?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonburr86","html_url":"https://github.com/brandonburr86","followers_url":"https://api.github.com/users/brandonburr86/followers","following_url":"https://api.github.com/users/brandonburr86/following{/other_user}","gists_url":"https://api.github.com/users/brandonburr86/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonburr86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonburr86/subscriptions","organizations_url":"https://api.github.com/users/brandonburr86/orgs","repos_url":"https://api.github.com/users/brandonburr86/repos","events_url":"https://api.github.com/users/brandonburr86/events{/privacy}","received_events_url":"https://api.github.com/users/brandonburr86/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-07-12T17:03:25Z","updated_at":"2017-07-12T18:47:24Z","closed_at":"2017-07-12T18:47:24Z","body":"Hello,\r\n\r\nI'm implementing remote storage for my editor and I'm running in to some JSON related problem. I'm thinking it's an error on my end, so let me know if I'm doing it wrong or if it's a bug in GJS.\r\n\r\nHere is my code:\r\n\r\n`\r\nvar editor = grapesjs.init({\r\n        container : '#gjs',\r\n\t\tstorageManager: {\r\n\t\t     type: 'remote',\r\n\t\t     urlLoad: \"/admin/newbuilder/get_page/707/register/\",\r\n\t\t     contentTypeJson: true,\r\n\t\t     params: {},\r\n\t\t   },\r\n\t\tallowScripts: 1,\r\n\t\tshowOffsets: 1,\r\n\t\tautoload: 1,\r\n\t\tnoticeOnUnload: 0\r\n    });\r\n`\r\n\r\nThis is the JSON response from that URL:\r\n\r\n`\r\n {\"gjs-html\":\"SOME HTML\", \"gjs-css\":\"SOME CSS\"}\r\n`\r\n\r\nAnd when I dump the object that the remote storage module loads using this code:\r\n\r\n`\r\n\teditor.on('storage:load', function(obj) {\r\n\t  console.log('Loaded ', obj);\r\n\t})\r\n\teditor.on('storage:store', function(obj) {\r\n\t console.log('Stored ', obj);\r\n\t})\r\n`\r\n\r\nFor some reason it's not correctly parsing the JSON object. I get this from the debugger: \r\n\r\n![screen shot 2017-07-12 at 12 06 57 pm](https://user-images.githubusercontent.com/29148060/28129879-a5e0b9f2-66fa-11e7-8384-253a3d45676c.png)\r\n\r\n\r\nWhat am I doing wrong?\r\n\r\nThanks,\r\n\r\nBrandon"}}
{"actor":{"display_login":"brandonburr86"}}