0
以下是GitHub從REST GET方法返回的內容。如何使用JSON解析它?如何解析從Groovy中的HttpBuilder返回的json響應?
response.success = { resp, reader ->
result = reader.text
}
[{"login":"ghost","id":1,"avatar_url": ....},{"login":"github-enterprise","id":2,"avatar_url": ....}]
使用RestBuilder並將其解析爲您 –