putOpt

Add a key and value to the JSON map.

Return

The JSON map builder.

Parameters

key

The key as a String.

value

The value as an Object. If an exception is thrown while attempting to wrap this object as a JsonValue, it will be swallowed and the entry will be dropped from the map.