public class JSONParser
extends java.lang.Object
JSONParser parses a text into a Map according to the given pattern and
JSONpath. It takes a property Map to construct the instance. If Pattern is
defined in the property map, the JSON content will be parsed out of the
text via the given pattern first. Otherwise, the entire text is supposed to
be the JSON payload. If JSONPath map is defined in the property map, the
values of its keys will be used as the JSONPath expressions to retrive data
from the JSON payload. In this case, the returned Map will filled with the
key-value pairs specified in JSONPath map. Otherwise, the returned map will
contain the original parsing result.
- Author:
- yannanlu@yahoo.com