vishalsirsodiya / jsonpath

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

jsonPath breaks when minified #25

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Minify jsonpath.js using MS Build Extensions in Visual Studio 2012
2. Execute a query such as: jsonPath(json, "$.foo[?(@.bar == 'somevalue')]")

What is the expected output? What do you see instead?
Expected Object or false. Instead see the following error in Chrome's 
javascript console: 
Uncaught SyntaxError: jsonPath: _v is not defined: _v.foo[?(@.bar == 
'somevalue')] 

What version of the product are you using? On what operating system?
jsonPath 0.8.0, Windows 8 x64

Please provide any additional information below.
The same query works as expected with the un-minified jsonpath.js
Attached Minified jsonpath.js

Original issue reported on code.google.com by JMadison...@gmail.com on 26 Apr 2013 at 9:59

Attachments: