sjsonnet
sjsonnet copied to clipboard
Add `??` with nullsafe or default value.
Motivation: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing
We need to something like maybeNullObj?['someField'] ?? 'defaultValue'
refs: https://github.com/databricks/sjsonnet/issues/327
or we can just implement mvel:
person?.address?.city?: "Unknown City"