Accessed JArray values with invalid key value: "fields". Array position index expected Accessed JArray values with invalid key value: "fields". Array position index expected json json

Accessed JArray values with invalid key value: "fields". Array position index expected


If you replace

// This takes the current bitcoin price and formats it so there is the correct amount of decimal placesstring story = (string)ja["response"]["results"]["fields"]["body"];

with

// This takes the current bitcoin price and formats it so there is the correct amount of decimal placesstring story = (string)ja["response"]["results"][0]["fields"]["body"];

that should work for your example. Note the square bracket after results in the example you provided, that indicates an array that should be accounted for in your access code.