Use the type object for sending JSON to the database
Merge pull request #15979 from sgrif/sg-json-quoting

Use the type object for sending JSON to the database