Package org.apache.felix.utils.json
Class JSONParser
java.lang.Object
org.apache.felix.utils.json.JSONParser
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
Listwhich may contain any of the above values.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JSONParser
-
JSONParser
- Throws:
IOException
-
-
Method Details
-
getParsed
-
getParsedList
-