The JSON documents I'm creating need to have a properties
field, even if there are no properties.
{"foo":"bar","properties":{}}
is legal, {"foo":"bar"}
is illegal.
How can I define an empty object to use as the properties value using the Json4s DSL?
("foo" -> "bar") ~ ("properties" -> ???)
I have tried Map.empty
, new Object
, ()
. All of these are not the correct type.