vishalsirsodiya / jsonpath

Automatically exported from code.google.com/p/jsonpath
0 stars 0 forks source link

C#, Negative Phyton slice #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
parseInt does not allow negative numbers (NumberStyles.None), this prevents 
negative index selectors from working as expected. Personal fix was to use 
NumberStyles.AllowLeadingSign

eg. $.data[0].values[-1:].value would return all values in path 
$.data[0].values[*].value instead of expected values.

Original issue reported on code.google.com by korup...@gmail.com on 16 Dec 2013 at 10:08