-
When creating key-value pairs, how do you avoid ending up with keys that don't have values when the "value" is missing or evaluates to null or { } or [ ]? JSLT:
If .amps, for example, happens to be missing from the input JSON, the above evaluates to:
I'm hoping to get:
|
Beta Was this translation helpful? Give feedback.
Answered by
larsga
Feb 5, 2022
Replies: 1 comment 2 replies
-
In this case I think I would first make the array, and then filter it later. Like this:
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
FoolMuun
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In this case I think I would first make the array, and then filter it later. Like this: