Class JSONParser

java.lang.Object
org.apache.felix.utils.json.JSONParser

public class JSONParser extends Object
A very small JSON parser. The JSON input is parsed into an object structure in the following way:
  • Object names are represented as a String.
  • String values are represented as a String.
  • Numeric values without a decimal separator are represented as a Long.
  • Numeric values with a decimal separator are represented as a Double.
  • Boolean values are represented as a Boolean.
  • Nested JSON objects are parsed into a Map<String, Object>.
  • JSON lists are parsed into a List which may contain any of the above values.