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.


Method Summary
 java.lang.String GetMember(java.lang.String _strName)
           
 java.lang.String GetObjectName()
           
 void ParseJSONObject(java.lang.String _strJSON)
          Parses the supplied JSON object.
 

Method Detail

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.



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.