Package org.apache.felix.dm.runtime
Class JsonReader
java.lang.Object
org.apache.felix.dm.runtime.JsonReader
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
Listwhich may contain any of the above values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
-
Constructor Details
-
JsonReader
-
JsonReader
- Throws:
IOException
-
-
Method Details
-
getParsed
-
readStream
- Throws:
IOException
-