更新时间:2022-12-10 14:54:23
尝试一下,
SBJSON *jsonData = [SBJSON alloc]init]; - Objective c
private JSONObject jObject; - Java
//您将获得一个JSON数据-目标C
// you get a JSON Data - Objective C
NSDictionary *errorString = [[jsonData objectForKey:@"error_string"] retain];
对于Java-
jObject = new JSONObject(errorString);
JSONArray menuitemArray = popupObject.getJSONArray("error_string");
String attributeValue = jObject.getString("value");
System.out.println(attributeValue);