Class JsonWriter

java.lang.Object
org.apache.felix.dm.annotation.plugin.bnd.JsonWriter

public class JsonWriter extends Object
Class used to serialize a map into the json format. Code adapted from Apache Felix Converter (org.apache.felix.serializer.impl.json.JsonSerializingImpl) The JSON output 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.