Issue with httpjson

I have an API which returns

{“success”: 1}
I have added this to telegraf.conf file under inputs.httpjson field. I can just see response time in measurements. How do I capture JSON fields and values?

Make sure the api returns valid JSON. Your above example should be {"success":1}

Thats exactly what it is returning, “=” was a typo!