Class JsonReader

java.lang.Object
org.apache.felix.dm.runtime.JsonReader

public class JsonReader extends Object
A very small JSON parser. Code adapted from the org.apache.felix.serializer.impl.json.JsonParser.java, from the Apache Felix Converter project. 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.