{"action":"opened","issue":{"url":"https://api.github.com/repos/openresty/lua-cjson/issues/9","repository_url":"https://api.github.com/repos/openresty/lua-cjson","labels_url":"https://api.github.com/repos/openresty/lua-cjson/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/openresty/lua-cjson/issues/9/comments","events_url":"https://api.github.com/repos/openresty/lua-cjson/issues/9/events","html_url":"https://github.com/openresty/lua-cjson/issues/9","id":175911128,"number":9,"title":"\"null\" will be decoded as ngx.null","user":{"login":"mike07026","id":16629623,"avatar_url":"https://avatars.githubusercontent.com/u/16629623?v=3","gravatar_id":"","url":"https://api.github.com/users/mike07026","html_url":"https://github.com/mike07026","followers_url":"https://api.github.com/users/mike07026/followers","following_url":"https://api.github.com/users/mike07026/following{/other_user}","gists_url":"https://api.github.com/users/mike07026/gists{/gist_id}","starred_url":"https://api.github.com/users/mike07026/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike07026/subscriptions","organizations_url":"https://api.github.com/users/mike07026/orgs","repos_url":"https://api.github.com/users/mike07026/repos","events_url":"https://api.github.com/users/mike07026/events{/privacy}","received_events_url":"https://api.github.com/users/mike07026/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-09T02:18:51Z","updated_at":"2016-09-09T02:18:51Z","closed_at":null,"body":"```\r\nlocal cjson = require \"cjson.safe\"\r\nlocal r = cjson.decode(\"null\")\r\nngx.say(r == ngx.null)    -- true here\r\n```\r\n\r\nI think \"null\" is not a valid json string, and expect decode result is nil, but r == ngx.null here.\r\nMaybe it is better to document this behavior or just fix it in cjson source code?"}}
{"actor":{"display_login":"mike07026"}}