com.plumtree.portalpages.rest.utils
Interface IJSONParser
- All Known Implementing Classes:
- JSONParser
public interface IJSONParser
This JSON parser handles simple objects only.
It is very limited, and does not handle arrays, or non-string
object types. It also only handles escaped quotes and slashes.
ParseJSONObject
void ParseJSONObject(java.lang.String _strJSON)
- Parses the supplied JSON object.
- Parameters:
_strJSON
- the JSON string to be parsed.
- Throws:
XPFormatException
GetObjectName
java.lang.String GetObjectName()
- Returns:
- the top-level JSON object name.
GetMember
java.lang.String GetMember(java.lang.String _strName)
- Parameters:
_strName
- The key for the JSON member to be returned.
- Returns:
- the requested JSON member value.