Closed
Description
Is there a way for the JSON document to be stored as is? For example, string "true" and string "42" are converted to boolean ant number respectively.
curl -H "Content-Type: application/json" -X POST -d '{"field1":"xyz","field2":"true","field3":"42","field4":"null"}' http://localhost:3000/example
{
"field1": "xyz",
"field2": true,
"field3": 42,
"field4": "null",
"id": 1
}
While it may not be significant in javascript, the resulting document cannot be easily decoded to a map in Go (and maybe other languages) if the expected type is a string.
Thanks
Metadata
Metadata
Assignees
Labels
No labels
Activity