In the long run. It would be nice if I could create a plug-in which would allow the user to add custom columns that displays certain JSON paths. So that the user could enter an xpath like /params/username and tell Fiddler to display that in a column named Username. That plug-in should also make it possible to load and save sets of these custom columns... Anyway, I am a long way from being able to do that. :-)
if (oSession.oResponse.headers.ExistsAndContains("Content-Type", "application/json"))
{
var oJSON: Fiddler.WebFormats.JSON.JSONParseResult;
oJSON = (JSONParseResult) Fiddler.WebFormats.JSON.JsonDecode(oSession.GetResponseBodyAsString());
var oParams = oJSON.JSONObject[0]["params"];
}
The root JSONObject and its children are one of the following types: Hashtable, ArrayList, double, string, or null. So in your example, you'd have a hashtable named params, which contains your key/value pairs.