jsonata-java
jsonata-java copied to clipboard
JSONata reference ported to Java
This is a port of the corresponding fix in [jsonata-python](https://github.com/rayokota/jsonata-python/issues/13)
Hello, Currently, it's impossible to implement `EntryCallback` and `ExitCallback` since Parser.Symbol is not public and can't be referenced outside `com.dashjoin.jsonata` package.
1. When I evaluate the expression `nullField` against the document: ` { "nullField": null }` I get `null`. 2. When I evaluate the expressions `nonExistingField` against the same document I...
Hello, To make it easy to work with `Parser.Symbol` and state of expr, let's make `Parser.Symbol.type` public.
Input: ``` "http://example.org/test{par}" ``` Expression: ``` $replace($, /{par}/, '') ``` Output: ``` java.util.regex.PatternSyntaxException: Illegal repetition near index 1 {par} ^ at java.base/java.util.regex.Pattern.error(Pattern.java:2028) ``` should be: ``` "http://example.org/test" ``` It works...
on try.jsonata.org the following expression is used to access the parent and the grandparent contexts: `Account.Order.Product.{ 'Product': `Product Name`, 'Order': %.OrderID, 'Account': %.%.`Account Name` }` However in java (version 0.9.9)...
Input ``` $string({"te\nst":"te\nst"}) ``` Output ``` {"te st":"te\nst"} ``` Expected ``` {"te\nst":"te\nst"} ```