Chlumsky/json-cpp-gen

Allow constant string as object key

Chlumsky opened this issue · 1 comments

Currently, only a StringType can be a key for object types. Make it possible to also use ConstStringType as such.

In the end, object key can be of any type, even non-string. This can result in invalid JSON, but only if it is imposed by the user's input structure. Maybe a warning is in order in such cases.