Since our configuration framework does not support null values, empty objects and empty arrays a builder can be used to configure values which should be mapped to those values.
Example with mappings:
config.yml:
json-test:
normal: ok
empty-object: '{}'
empty-array: '[]'
null-value: 'null'
Enables retrieval of a part of a configuration tree as JSON-P object.
Example usage:
config.yml:
The following code:
Produces the following
JsonObject
:Since our configuration framework does not support null values, empty objects and empty arrays a builder can be used to configure values which should be mapped to those values.
Example with mappings:
config.yml:
The following code:
Produces the following
JsonObject
:If no mappings were defined the following
JsonObject
would be produced: