forked from blues/jsonata-go
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow empty arrays to be returned (#18)
In Jsonata it is a valid response return `[]any{}` from a transform, but this was previously filtered out. For example, in jsonata-js, the following input and transform result in a response of `[]`. Input: ``` { "Account": { "Account Name": "Firefly", "Order": [ ] } } ``` Transform: "Account.Order" The same data and transform resulted in a "no results found" error in jsonata-go.
- Loading branch information
1 parent
d58a160
commit 44fd010
Showing
2 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters