public class JSON extends Object implements SectionMap
| 限定符和类型 | 方法和说明 |
|---|---|
JSONSection |
createSection(String key)
Create the section named key
|
JSONList |
getList(String key)
Get the list named key
|
JSONSection |
getSection(String key)
Get the section named key
|
Map<String,Object> |
getValues()
Get all the key-value pairs
|
String |
toJson()
Translate this JSON instance into json String
|
String |
toString() |
public JSONSection createSection(String key)
SectionMapcreateSection 在接口中 SectionMapkey - the key of the Sectionpublic Map<String,Object> getValues()
SectionMapgetValues 在接口中 SectionMappublic JSONSection getSection(String key)
SectionMapgetSection 在接口中 SectionMapkey - the key of the Sectionpublic JSONList getList(String key)
key - the key of the listpublic String toJson()
Copyright © 2022. All rights reserved.