I find jq very useful for tasks like this. But it's more awk for JSON than grep for JSON.
For some compare and contrast between: jsonpath, jq, and jp these were for getting AWS ec2 instance IDs:
cat foo.json | jsonpath -p $.InstanceProfiles.[*].RoleId
cat foo.json | jq .InstanceProfiles[].Roles[].RoleId
cat foo.json | jp InstanceProfiles[].InstanceProfileId
apologies to mobile users!In the end I wound up just using rq to convert the toml to JSON so I could use jq on it.
It was a while ago so I suppose it's possible I just used it too early in its life or something though.