Insomnia Version: _5.3.6_Operating System: _Win10 Home (Creators Update)_Summary: _If I use the new response parsing feature directly within a request it all works perfectly, but if I transpose the same response into the environment settings then it doesn't work. At the bottom of the page I get the error "Unexpected error % in JSON at position 13"__Thanks for adding this feature, it's going to make my life that little bit more pleasant as I'll no longer have to keep copying my JWT back and forth from auth responses_
Make sure you have quotes around your tag.

Under the hood, the tag is saved as {% response 'body', 'request_id, '$.json.path.query' %} so, if there are no quotes, the JSON becomes invalid.
Well, now I feel embarrassed. You're quite right, it was a quoting issue. Thanks for your help.
Don't be embarrassed @Fritzbraun! The error doesn't make it clear that that's what the issue is.
Glad that helped and you're welcome 馃樃
Have you guys thought about adding some more documentation around this? Populating headers with login tokens is one of the first things I'm going to do when creating a request library, and I just spent like 90 minutes searching and figuring out how to do it.
Hey @zkghost. Did you end up figuring it out? I'd be happy to answer any questions you have.
There is a brief bit of documentation here but it could definitely use more examples. Did you find that page?
@gschier I did end up finding it out; I think initially I was using the Nunjucks templates wrong.
Think my problem was that I was searching for things around "setting variables" instead of chaining requests.
That page does look pretty good though, I think it was just my bad for not searching for the right thing 馃憤
Right. Perhaps I should also make a page for dynamically setting variables that explains that chaining should be used.
Definitely not your fault. The product should always serve the user 馃さ
:) Wouldn't hurt.
Thanks also! Used Postman for months and your product is a refreshing alternative :) really like the way variables are integrated. Keep up the good stuff! And the great service :D!
You're welcome! I always love hearing positive feedback 馃槃
@gschier Could you write a user-friendly message? And it is not clear what to do.
Unexpected token % in JSON
what happens when the thing I want to send is actually an object and not a JSON string?
@danielo515 this problem doesn't exist when using a variable in a JSON request. The syntax checker will complain but the request will still send
Most helpful comment
Make sure you have quotes around your tag.
Under the hood, the tag is saved as
{% response 'body', 'request_id, '$.json.path.query' %}so, if there are no quotes, the JSON becomes invalid.