How to create json object and send http post in fiddleScript

222 Views Asked by At

how can i create json object and send pass http post method in fiddleScript i try but not work

var sInput = '{"a" : 1, "b" : [2, 3, 4]}';
var json = Fiddler.WebFormats.JSON.JsonDecode(sInput);
1

There are 1 best solutions below

0
On

first of all, aren't you suppose to "encode" instead of "decode" before sending ?