Allow empty string object keys in json_object().
Andrew Dunstan <andrew@dunslane.net>
Allow empty string object keys in json_object(). This makes the behaviour consistent with the json parser, other json-generating functions, and the JSON standards.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/json.c | modified | +0 −8 |
| src/test/regress/expected/json_1.out | modified | +6 −2 |
| src/test/regress/expected/json.out | modified | +6 −2 |
| src/test/regress/sql/json.sql | modified | +1 −1 |