{"action":"created","issue":{"url":"https://api.github.com/repos/CoderMJLee/MJExtension/issues/147","labels_url":"https://api.github.com/repos/CoderMJLee/MJExtension/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/CoderMJLee/MJExtension/issues/147/comments","events_url":"https://api.github.com/repos/CoderMJLee/MJExtension/issues/147/events","html_url":"https://github.com/CoderMJLee/MJExtension/issues/147","id":97625693,"number":147,"title":"JSON -> model -> JSON 转换问题","user":{"login":"LengBinBin","id":6848970,"avatar_url":"https://avatars.githubusercontent.com/u/6848970?v=3","gravatar_id":"","url":"https://api.github.com/users/LengBinBin","html_url":"https://github.com/LengBinBin","followers_url":"https://api.github.com/users/LengBinBin/followers","following_url":"https://api.github.com/users/LengBinBin/following{/other_user}","gists_url":"https://api.github.com/users/LengBinBin/gists{/gist_id}","starred_url":"https://api.github.com/users/LengBinBin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LengBinBin/subscriptions","organizations_url":"https://api.github.com/users/LengBinBin/orgs","repos_url":"https://api.github.com/users/LengBinBin/repos","events_url":"https://api.github.com/users/LengBinBin/events{/privacy}","received_events_url":"https://api.github.com/users/LengBinBin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-28T06:19:06Z","updated_at":"2015-08-21T02:03:56Z","closed_at":"2015-08-21T02:03:56Z","body":"因为服务器数据是前端定义的， 导致现在交互的所有格式都需要用JSON， 但是，因为有的关键字被替换过，导致 model 转JSON的时候 关键字会变成已经替换的key。 不知道我需要在哪做这块的处理呢。\r\n\r\neg：\r\n```\r\n原始 JSON数据\r\n{\r\n  \"id\": \"2000\",\r\n  \"box-shaowwidth\": \"20px\"\r\n}\r\n\r\n\r\nmodel  中的转换健\r\n+ (NSDictionary *)replacedKeyFromPropertyName{\r\n    return @{\r\n             @\"uid\":@\"id\",\r\n             @\"box_shaowwidth\": @\"box-shaowwidth\"\r\n             };\r\n}\r\n\r\nModel 转换后的 JSON String\r\n\r\n{\"uid\":\"2000\",\"box_shaowwidth\":\"20px\"}\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/CoderMJLee/MJExtension/issues/comments/133245940","html_url":"https://github.com/CoderMJLee/MJExtension/issues/147#issuecomment-133245940","issue_url":"https://api.github.com/repos/CoderMJLee/MJExtension/issues/147","id":133245940,"user":{"login":"LengBinBin","id":6848970,"avatar_url":"https://avatars.githubusercontent.com/u/6848970?v=3","gravatar_id":"","url":"https://api.github.com/users/LengBinBin","html_url":"https://github.com/LengBinBin","followers_url":"https://api.github.com/users/LengBinBin/followers","following_url":"https://api.github.com/users/LengBinBin/following{/other_user}","gists_url":"https://api.github.com/users/LengBinBin/gists{/gist_id}","starred_url":"https://api.github.com/users/LengBinBin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LengBinBin/subscriptions","organizations_url":"https://api.github.com/users/LengBinBin/orgs","repos_url":"https://api.github.com/users/LengBinBin/repos","events_url":"https://api.github.com/users/LengBinBin/events{/privacy}","received_events_url":"https://api.github.com/users/LengBinBin/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T02:03:56Z","updated_at":"2015-08-21T02:03:56Z","body":"soga  找到了。THX"}}