{"action":"closed","issue":{"url":"https://api.github.com/repos/nutzam/nutz/issues/990","labels_url":"https://api.github.com/repos/nutzam/nutz/issues/990/labels{/name}","comments_url":"https://api.github.com/repos/nutzam/nutz/issues/990/comments","events_url":"https://api.github.com/repos/nutzam/nutz/issues/990/events","html_url":"https://github.com/nutzam/nutz/issues/990","id":120540749,"number":990,"title":"官网的文档是不是写错了，Json.fromJson 应该是Json.toJson","user":{"login":"CXW0504","id":11568839,"avatar_url":"https://avatars.githubusercontent.com/u/11568839?v=3","gravatar_id":"","url":"https://api.github.com/users/CXW0504","html_url":"https://github.com/CXW0504","followers_url":"https://api.github.com/users/CXW0504/followers","following_url":"https://api.github.com/users/CXW0504/following{/other_user}","gists_url":"https://api.github.com/users/CXW0504/gists{/gist_id}","starred_url":"https://api.github.com/users/CXW0504/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CXW0504/subscriptions","organizations_url":"https://api.github.com/users/CXW0504/orgs","repos_url":"https://api.github.com/users/CXW0504/repos","events_url":"https://api.github.com/users/CXW0504/events{/privacy}","received_events_url":"https://api.github.com/users/CXW0504/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-05T08:35:54Z","updated_at":"2015-12-05T17:36:32Z","closed_at":"2015-12-05T17:36:32Z","body":"compact -- 是否为紧凑模式,默认为false. 若为true,indent和indentBy将无效.\r\n\r\nJson.fromJson(pet, JsonFormat.full().setCompact(true)); // 不作任何换行和缩进\r\nquoteName -- key是否用双引号包起来,默认为true,同时也是json标准格式的要求. 若设置为false,则新版的jquery将解析出错.\r\n\r\nJson.fromJson(pet, JsonFormat.full().setQuoteName(false)); // 输出类似 {name:\"wendal\"}\r\nignoreNull -- 是否忽略控制,默认为false\r\n\r\nJson.fromJson(pet, JsonFormat.full().setIgnoreNull(true)); // null值的key-value将不会输出,但空List还是会的.\r\nactived -- 仅输出哪些的key,默认为null,即允许所有key. 注意,这是正则表达式!\r\n\r\nJson.fromJson(pet, JsonFormat.full().setActived(\"^(name|id|location)$\"); // 仅输出name/id/location,其他key都不输出\r\nlocked -- 与actived刚好相反, 不输出哪些的key,默认为null,即允许所有key. 注意,这是正则表达式!\r\n\r\nJson.fromJson(pet, JsonFormat.full().setLocked(\"^(location)$\"); // 不输出location,其他key正常输出\r\n"}}