{"action":"created","issue":{"url":"https://api.github.com/repos/BlackCatDevelopment/BlackCatCMS/issues/299","labels_url":"https://api.github.com/repos/BlackCatDevelopment/BlackCatCMS/issues/299/labels{/name}","comments_url":"https://api.github.com/repos/BlackCatDevelopment/BlackCatCMS/issues/299/comments","events_url":"https://api.github.com/repos/BlackCatDevelopment/BlackCatCMS/issues/299/events","html_url":"https://github.com/BlackCatDevelopment/BlackCatCMS/issues/299","id":68665570,"number":299,"title":"Add methods json_error() and json_success()","user":{"login":"webbird","id":147354,"avatar_url":"https://avatars.githubusercontent.com/u/147354?v=3","gravatar_id":"","url":"https://api.github.com/users/webbird","html_url":"https://github.com/webbird","followers_url":"https://api.github.com/users/webbird/followers","following_url":"https://api.github.com/users/webbird/following{/other_user}","gists_url":"https://api.github.com/users/webbird/gists{/gist_id}","starred_url":"https://api.github.com/users/webbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webbird/subscriptions","organizations_url":"https://api.github.com/users/webbird/orgs","repos_url":"https://api.github.com/users/webbird/repos","events_url":"https://api.github.com/users/webbird/events{/privacy}","received_events_url":"https://api.github.com/users/webbird/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BlackCatDevelopment/BlackCatCMS/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/BlackCatDevelopment/BlackCatCMS/labels/ready","name":"ready","color":"ededed"},{"url":"https://api.github.com/repos/BlackCatDevelopment/BlackCatCMS/labels/v1.2","name":"v1.2","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"webbird","id":147354,"avatar_url":"https://avatars.githubusercontent.com/u/147354?v=3","gravatar_id":"","url":"https://api.github.com/users/webbird","html_url":"https://github.com/webbird","followers_url":"https://api.github.com/users/webbird/followers","following_url":"https://api.github.com/users/webbird/following{/other_user}","gists_url":"https://api.github.com/users/webbird/gists{/gist_id}","starred_url":"https://api.github.com/users/webbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webbird/subscriptions","organizations_url":"https://api.github.com/users/webbird/orgs","repos_url":"https://api.github.com/users/webbird/repos","events_url":"https://api.github.com/users/webbird/events{/privacy}","received_events_url":"https://api.github.com/users/webbird/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/BlackCatDevelopment/BlackCatCMS/milestones/10","html_url":"https://github.com/BlackCatDevelopment/BlackCatCMS/milestones/v1.2","labels_url":"https://api.github.com/repos/BlackCatDevelopment/BlackCatCMS/milestones/10/labels","id":818117,"number":10,"title":"v1.2","description":"","creator":{"login":"webbird","id":147354,"avatar_url":"https://avatars.githubusercontent.com/u/147354?v=3","gravatar_id":"","url":"https://api.github.com/users/webbird","html_url":"https://github.com/webbird","followers_url":"https://api.github.com/users/webbird/followers","following_url":"https://api.github.com/users/webbird/following{/other_user}","gists_url":"https://api.github.com/users/webbird/gists{/gist_id}","starred_url":"https://api.github.com/users/webbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webbird/subscriptions","organizations_url":"https://api.github.com/users/webbird/orgs","repos_url":"https://api.github.com/users/webbird/repos","events_url":"https://api.github.com/users/webbird/events{/privacy}","received_events_url":"https://api.github.com/users/webbird/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":0,"state":"open","created_at":"2014-10-08T09:43:21Z","updated_at":"2015-04-15T12:14:17Z","due_on":"2015-08-30T22:00:00Z","closed_at":null},"comments":2,"created_at":"2015-04-15T12:14:17Z","updated_at":"2015-04-16T13:24:00Z","closed_at":null,"body":"There are many locations we need something like this:\r\n\r\n            echo json_encode(array(\r\n                'success' => true,\r\n                'message' => $backend->lang()->translate(\r\n                    'Installed successfully'\r\n                )\r\n            ));\r\n            exit();\r\n\r\nIt would be better to have methods for this (CAT_Object?) - example:\r\n\r\n    echo CAT_Object::json_success($message);\r\n    echo CAT_Object::json_error($message);"},"comment":{"url":"https://api.github.com/repos/BlackCatDevelopment/BlackCatCMS/issues/comments/93732919","html_url":"https://github.com/BlackCatDevelopment/BlackCatCMS/issues/299#issuecomment-93732919","issue_url":"https://api.github.com/repos/BlackCatDevelopment/BlackCatCMS/issues/299","id":93732919,"user":{"login":"webbird","id":147354,"avatar_url":"https://avatars.githubusercontent.com/u/147354?v=3","gravatar_id":"","url":"https://api.github.com/users/webbird","html_url":"https://github.com/webbird","followers_url":"https://api.github.com/users/webbird/followers","following_url":"https://api.github.com/users/webbird/following{/other_user}","gists_url":"https://api.github.com/users/webbird/gists{/gist_id}","starred_url":"https://api.github.com/users/webbird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webbird/subscriptions","organizations_url":"https://api.github.com/users/webbird/orgs","repos_url":"https://api.github.com/users/webbird/repos","events_url":"https://api.github.com/users/webbird/events{/privacy}","received_events_url":"https://api.github.com/users/webbird/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T13:24:00Z","updated_at":"2015-04-16T13:24:00Z","body":"ToDo: Scan the files for old code and replace it with the new method calls. Makes it shorter. :)"}}