appsmithorg / appsmithorg/appsmith
[Feature] Smart JSON substitution enhancements
Open
Community Reported
Core Query Execution
Enhancement
Integrations Product
Query & JS Pod
Query Widgets & IDE Pod
- Dominant language
- TypeScript
- Stars
- 40.9k
- Forks
- 4.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 45
Description
## Summary
Casting empty values appropriately and automatically can have a high impact when defining JSON payloads.
Today, we need to write verbose ternary operations to cast them accordingly.
For example:
`undefined` is considered incorrect in JSON, so we should have it automatically substituted to `null` during Smart JSON substitution
A screenshot of how verbose it is for users:

Contributor guide
Assessment
This issue has not been assessed yet.