-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR : Error(4, 76): syntax, near '$'. in C# when i Parse the expression #36
Comments
Hello, thanks for opening this issue, I would like to reproduce the issue. Could you provide a sample input? or does it have sensitive information? |
@jdevillard Sample JSON data. I am validating my query with this editor https://api.gopipeline.io/jmespath-tester
|
Thanks for this info and for providing the link to the tester. The online tester you mention use the library available at https://www.npmjs.com/package/@metrichor/jmespath This library provide some extension for the initial spec like this one : Root value access with $ symbol
However, it could be a good idea to include this extensions in the .Net Specification. Thanks a lot. |
Does this package available for dot net core? https://www.npmjs.com/package/@metrichor/jmespath or there is any workaround to access Root value? |
no it's specific to javascript implementation. We will see how to implement this as well on the dotnet version |
Hey folks, The |
@glenveegee Thanks for the feedback.
We plan to draft a JEP to submit a proposal that the official specification implements the |
We are discussing whether to support the
|
@ImAbhishekTomar A new version of JMESPath.NET has been released. It includes an implementation of the This may help you work around the non-standard You will need to register the var parser = new JmesPath();
parser.FunctionRepository
.Register<ItemsFunction>()
.Register<ToObjectFunction>()
.Register<ZipFunction>()
.Register<LetFunction>()
; The example you refer to can be written like so:
Or, in C#
|
Hi,
My expression is working fine with the online editor but when I used the same expression with the same data in c# it's giving me the below error.
ERROR
Error(4, 76): syntax, near '$'.
at DevLab.JmesPath.JmesPathScanner.yyerror(String format, Object[] args)
at DevLab.JmesPath.JmesPathScanner.Scan()
at DevLab.JmesPath.JmesPathScanner.yylex()
at StarodubOleg.GPPG.Runtime.ShiftReduceParser`2.Parse()
at DevLab.JmesPath.Parser.Parse(Stream stream, Encoding encoding, IJmesPathGenerator generator)
at DevLab.JmesPath.JmesPath.Parse(Stream stream)
at DevLab.JmesPath.JmesPath.Parse(String expression)
at AzureFunctionDurableTic.AzureFunctionTIC.d__16.MoveNext() in /Users/atomar10/Projects/AzureFunctionDurableTic/AzureFunctionDurableTic/AzureFunctionTIC.cs:line 203
CODE
The text was updated successfully, but these errors were encountered: