vial-http icon indicating copy to clipboard operation
vial-http copied to clipboard

Parsing JSON in templates doesn't work in python3

Open pmaoui opened this issue 7 years ago • 0 comments

Hi, I had to downgrade to python2 in order to make this works:

Host: jsonplaceholder.typicode.com
Origin: https://jsonplaceholder.typicode.com

TEMPLATE tryit
myvalue: ${json["try"]}

POST /posts | tryit
{ "try": "it" }

with python3 I always had:

myvalue: None

generated.

pmaoui avatar May 25 '18 00:05 pmaoui