-
Notifications
You must be signed in to change notification settings - Fork 7
[Question]: Array from single item #23
Copy link
Copy link
Open
Description
Hey,
Is there a way to output an array of one item from a single object?
Input Object:
{ email: "a@example.com" }
Required output:
{ emails: [ { email: "a@example.com" }] }
I have tried the below but its not quite what I need.
{
"emails": {
"path": "$empty",
"nested": {
"email": {
"path": "email"
}
}
}
}
Also this is invalid:
{
"emails": [{
"path": "$empty",
"nested": {
"email": {
"path": "email"
}
}
}]
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels