GitHub PullRequestReviewCommentEvent at 2014-03-05 10:31:44
Repository: ezpublish-kernel
Actor: dpobel
Payload: {"comment":{"url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/comments/10294347","id":10294347,"diff_hunk":"@@ -19,12 +20,49 @@ class Json extends Handler\n     /**\n      * Converts the given string to an array structure\n      *\n+     * @throw eZ\\Publish\\Core\\REST\\Common\\Exceptions\\Parser\n      * @param string $string\n      *\n      * @return array\n      */\n     public function convert( $string )\n     {\n-        return json_decode( $string, true );\n+        $json = json_decode( $string, true );\n+        if ( JSON_ERROR_NONE !== ( $jsonErrorCode = json_last_error() ) )\n+        {\n+            $message = \"An error occured while decoding the JSON input:\\n\";\n+            $message .= $this->jsonDecodeErrorMessage( $jsonErrorCode );\n+            $message .= \"\\nInput JSON:\\n\\n\" . $string;","path":"eZ/Publish/Core/REST/Common/Input/Handler/Json.php","position":25,"original_position":25,"commit_id":"8e6f5fe5df6e6860c81075b3413a0fea78de66b2","original_commit_id":"8e6f5fe5df6e6860c81075b3413a0fea78de66b2","user":{"login":"dpobel","id":305563,"avatar_url":"https://gravatar.com/avatar/4de37fbd059084f7fb24cb9d4125c083?d=https%3A%2F%2Fidenticons.github.com%2Fde3899101430ee6960334db56c3a05e1.png&r=x","gravatar_id":"4de37fbd059084f7fb24cb9d4125c083","url":"https://api.github.com/users/dpobel","html_url":"https://github.com/dpobel","followers_url":"https://api.github.com/users/dpobel/followers","following_url":"https://api.github.com/users/dpobel/following{/other_user}","gists_url":"https://api.github.com/users/dpobel/gists{/gist_id}","starred_url":"https://api.github.com/users/dpobel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpobel/subscriptions","organizations_url":"https://api.github.com/users/dpobel/orgs","repos_url":"https://api.github.com/users/dpobel/repos","events_url":"https://api.github.com/users/dpobel/events{/privacy}","received_events_url":"https://api.github.com/users/dpobel/received_events","type":"User","site_admin":false},"body":"off topic => new issue","created_at":"2014-03-05T10:31:44Z","updated_at":"2014-03-05T10:31:44Z","html_url":"https://github.com/ezsystems/ezpublish-kernel/pull/768#discussion_r10294347","pull_request_url":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/768","_links":{"self":{"href":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/comments/10294347"},"html":{"href":"https://github.com/ezsystems/ezpublish-kernel/pull/768#discussion_r10294347"},"pull_request":{"href":"https://api.github.com/repos/ezsystems/ezpublish-kernel/pulls/768"}}}}