Skip to content

jsonPath breaks when minified #25

@GoogleCodeExporter

Description

@GoogleCodeExporter
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:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions