Be clearer about when jsonapi's need_escapes is needed
Andrew Dunstan <andrew@dunslane.net>
Be clearer about when jsonapi's need_escapes is needed Most operations beyond pure json parsing need to set need_escapes to true to get access to field names and string scalars. Document this fact more explicitly. Slightly tweaked patch from: Author: Corey Huinker <corey.huinker@gmail.com> Discussion: https://postgr.es/m/CADkLM=c49Vkfg2+A8ubSuEtaGEjuaKZXCA6SrXA8kdwHjx3uxQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/common/jsonapi.c | modified | +5 −1 |
| src/include/common/jsonapi.h | modified | +13 −2 |
Discussion
- Additional comments around need_escapes in pg_parse_json() 4 messages · 2024-12-20 → 2025-01-19