{"action":"created","issue":{"url":"https://api.github.com/repos/xAPI-vle/moodle-logstore_xapi/issues/81","repository_url":"https://api.github.com/repos/xAPI-vle/moodle-logstore_xapi","labels_url":"https://api.github.com/repos/xAPI-vle/moodle-logstore_xapi/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/xAPI-vle/moodle-logstore_xapi/issues/81/comments","events_url":"https://api.github.com/repos/xAPI-vle/moodle-logstore_xapi/issues/81/events","html_url":"https://github.com/xAPI-vle/moodle-logstore_xapi/issues/81","id":166094088,"number":81,"title":"Json is malformed at contextActivities>extensions>other, I think","user":{"login":"deedey","id":5656024,"avatar_url":"https://avatars.githubusercontent.com/u/5656024?v=3","gravatar_id":"","url":"https://api.github.com/users/deedey","html_url":"https://github.com/deedey","followers_url":"https://api.github.com/users/deedey/followers","following_url":"https://api.github.com/users/deedey/following{/other_user}","gists_url":"https://api.github.com/users/deedey/gists{/gist_id}","starred_url":"https://api.github.com/users/deedey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deedey/subscriptions","organizations_url":"https://api.github.com/users/deedey/orgs","repos_url":"https://api.github.com/users/deedey/repos","events_url":"https://api.github.com/users/deedey/events{/privacy}","received_events_url":"https://api.github.com/users/deedey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xAPI-vle/moodle-logstore_xapi/labels/priority:medium","name":"priority:medium","color":"eb6420"},{"url":"https://api.github.com/repos/xAPI-vle/moodle-logstore_xapi/labels/status:unconfirmed","name":"status:unconfirmed","color":"009800"},{"url":"https://api.github.com/repos/xAPI-vle/moodle-logstore_xapi/labels/type:bug","name":"type:bug","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"jlowe64","id":1077381,"avatar_url":"https://avatars.githubusercontent.com/u/1077381?v=3","gravatar_id":"","url":"https://api.github.com/users/jlowe64","html_url":"https://github.com/jlowe64","followers_url":"https://api.github.com/users/jlowe64/followers","following_url":"https://api.github.com/users/jlowe64/following{/other_user}","gists_url":"https://api.github.com/users/jlowe64/gists{/gist_id}","starred_url":"https://api.github.com/users/jlowe64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlowe64/subscriptions","organizations_url":"https://api.github.com/users/jlowe64/orgs","repos_url":"https://api.github.com/users/jlowe64/repos","events_url":"https://api.github.com/users/jlowe64/events{/privacy}","received_events_url":"https://api.github.com/users/jlowe64/received_events","type":"User","site_admin":false},"assignees":[{"login":"jlowe64","id":1077381,"avatar_url":"https://avatars.githubusercontent.com/u/1077381?v=3","gravatar_id":"","url":"https://api.github.com/users/jlowe64","html_url":"https://github.com/jlowe64","followers_url":"https://api.github.com/users/jlowe64/followers","following_url":"https://api.github.com/users/jlowe64/following{/other_user}","gists_url":"https://api.github.com/users/jlowe64/gists{/gist_id}","starred_url":"https://api.github.com/users/jlowe64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlowe64/subscriptions","organizations_url":"https://api.github.com/users/jlowe64/orgs","repos_url":"https://api.github.com/users/jlowe64/repos","events_url":"https://api.github.com/users/jlowe64/events{/privacy}","received_events_url":"https://api.github.com/users/jlowe64/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/xAPI-vle/moodle-logstore_xapi/milestones/7","html_url":"https://github.com/xAPI-vle/moodle-logstore_xapi/milestones/v1.1.1","labels_url":"https://api.github.com/repos/xAPI-vle/moodle-logstore_xapi/milestones/7/labels","id":1817475,"number":7,"title":"v1.1.1","description":"","creator":{"login":"ryansmith94","id":3045513,"avatar_url":"https://avatars.githubusercontent.com/u/3045513?v=3","gravatar_id":"","url":"https://api.github.com/users/ryansmith94","html_url":"https://github.com/ryansmith94","followers_url":"https://api.github.com/users/ryansmith94/followers","following_url":"https://api.github.com/users/ryansmith94/following{/other_user}","gists_url":"https://api.github.com/users/ryansmith94/gists{/gist_id}","starred_url":"https://api.github.com/users/ryansmith94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryansmith94/subscriptions","organizations_url":"https://api.github.com/users/ryansmith94/orgs","repos_url":"https://api.github.com/users/ryansmith94/repos","events_url":"https://api.github.com/users/ryansmith94/events{/privacy}","received_events_url":"https://api.github.com/users/ryansmith94/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-06-09T10:52:37Z","updated_at":"2016-07-18T13:38:14Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-07-18T13:31:48Z","updated_at":"2016-07-18T15:31:42Z","closed_at":null,"body":"Hi!\r\nI have an JSON error in a malformed string at **\"contextActivities>extensions>other\"** derived from \"other\" field of \"mdl_logstore_standard_log\"\r\nSee this exemple on this field : \"a:1:{s:19:\"coursesectionnumber\";i:-1;}\" and note that there is double quotes into this field.\r\nwe obtain this malformed JSON:\r\n      \"extensions\":{\r\n         \"http://lrs.learninglocker.net/define/extensions/moodle_logstore_standard_log\":{\r\n            \"eventname\":\"coreeventcourse_viewed\",\r\n            \"component\":\"core\",\r\n            \"action\":\"viewed\",\r\n            \"target\":\"course\",\r\n            \"objecttable\":null,\r\n            \"objectid\":null,\r\n            \"crud\":\"r\",\r\n            \"edulevel\":2,\r\n            \"contextid\":88,\r\n            \"contextlevel\":50,\r\n            \"contextinstanceid\":\"7\",\r\n            \"userid\":\"2\",\r\n            \"courseid\":\"7\",\r\n            \"relateduserid\":null,\r\n            \"anonymous\":0,\r\n            **\"other\":\"a:1:{s:19:\"coursesectionnumber\";i:-1;}\",**\r\n            \"timecreated\":1468847486,\r\n            \"origin\":\"web\",\r\n            \"ip\":\"194.167.15.238\",\r\n            \"realuserid\":null\r\n         },\r\nwith this error:\r\n_**Error: Parse error on line 104:\r\n...\"other\":\"a:1:{s:19:\"coursesectionnumber\"\r\n-----------------------^\r\nExpecting 'EOF', '}', ':', ',', ']', got 'undefined'**_\r\n\r\nWhat do you think about replacing Double Quotes by Single Quotes or deleting them to resolve this error."},"comment":{"url":"https://api.github.com/repos/xAPI-vle/moodle-logstore_xapi/issues/comments/233364472","html_url":"https://github.com/xAPI-vle/moodle-logstore_xapi/issues/81#issuecomment-233364472","issue_url":"https://api.github.com/repos/xAPI-vle/moodle-logstore_xapi/issues/81","id":233364472,"user":{"login":"jlowe64","id":1077381,"avatar_url":"https://avatars.githubusercontent.com/u/1077381?v=3","gravatar_id":"","url":"https://api.github.com/users/jlowe64","html_url":"https://github.com/jlowe64","followers_url":"https://api.github.com/users/jlowe64/followers","following_url":"https://api.github.com/users/jlowe64/following{/other_user}","gists_url":"https://api.github.com/users/jlowe64/gists{/gist_id}","starred_url":"https://api.github.com/users/jlowe64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlowe64/subscriptions","organizations_url":"https://api.github.com/users/jlowe64/orgs","repos_url":"https://api.github.com/users/jlowe64/repos","events_url":"https://api.github.com/users/jlowe64/events{/privacy}","received_events_url":"https://api.github.com/users/jlowe64/received_events","type":"User","site_admin":false},"created_at":"2016-07-18T15:31:42Z","updated_at":"2016-07-18T15:31:42Z","body":"Okay, it looks like we aren't escaping the serialized array when it gets put into the JSON structure. I'm guessing that my LRS is handling it somehow, as when I try to look at a statement with a serialized array in it, there's only `\"other\": \"N;\"` on the other end. \r\n\r\nThanks for finding that!"}}
{"actor":{"display_login":"jlowe64"}}