JsonOptions.NonStringKeys

What to do with associative arrays with non-string keys

Values

ValueMeaning
error

Fail compilation.

asIs

Serialize keys as-is - results in non-compliant JSON.

stringify

Serialize keys as strings. Note that this may result in multiple levels of quoting.

Meta