``我有一个 Json 数组作为响应,例如:
[
{
"status": "Active",
"entityName": "fghgfhfghfgh",
"entityCode": 14,
"children": [],
"attributes": [
{
"attributeValue": "500 michigan ave"
}
],
"deviceList": [],
"entityId": "64eab9299eed9455b3683da074cf175c",
"customerId": 2006546,
"type": "7dad308f82b41e02fe8959c05b631bd7"
}
,
{
"status": "Active",
"entityName": "ghghhguyutgh6re58rrt",
"entityCode": 13,
"children": [],
"attributes": [
{
"attributeValue": "500 michigan ave"
}
],
"deviceList": [],
"entityId": "912eff0613fa140c100af435c033e195",
"customerId": 2006546,
"type": "7dad308f82b41e02fe8959c05b631bd7"
}
]
我想把这个json分成两部分
{“状态”:“活动”,“实体名称”:“fghgfhfghfgh”,“实体代码”:14,“孩子”:[],“属性”:[{“属性值”:“500 密歇根大道”}],“设备列表” “:[],“entityId”:“64eab9299eed9455b3683da074cf175c”,“customerId”:2006546,“类型”:“7dad308f82b41e02fe8959c05b631bd7”}
另一个。我正在使用 GSON 和 simplejson,当我尝试删除分隔符([ 和 ])时,json 格式错误。有没有更好的选项将 json 数组拆分为两个或多个 json 字符串json 响应来了。