"Reformat contents" removes whitespace from JSONPath Query

When using the "Reformat contents" feature with request chaining via response.body.path(...), all whitespaces within JSONPath queries are incorrectly stripped.

Steps to reproduce

  1. Make a GET request to https://api.github.com/users/octocat/repos

  2. Create a new request with some sort of body (e.g., JSON, GraphQL)

  3. In the new query, reference the response body of the GET request from #1 using request chaining (i.e., response.body.path(…)) with this JSONPath query: $[?(@.license?.name=="MIT License")].id

  4. Apply "Reformat contents" feature

  5. Click the blue template tag and notice that the JSONPath query has been updated to $[?(@.license?.name=="MITLicense")].id (whitespace removed between “MIT” and “License”)

Please authenticate to join the conversation.

Upvoters
Status

Released

Board

Feedback

Tags

Bug

Date

About 1 year ago

Author

Ben Y

Subscribe to post

Get notified by email when there are changes.