am having trouble understanding how https://github.com/buger/jsonparser , works. I dont feel the examples given are easy to understand, can someone help me a with good example for each of methods under the jsonparser package ? Am specifically looking for a way to make "jsonparser.EachKey" work, i have this schema, and i need to fetch all the keys under "attributes"
{
"provider": {
"version": 0,
"block": {
"attributes": {
"access_approval_custom_endpoint": {
"type": "string",
"description_kind": "plain",
"optional": true
},
"access_approval_adhoc": {
"type": "string",
"description_kind": "plain",
"optional": true
}
}
}
}
}
So that the output is a list of keys under attributes : ["access_approval_custom_endpoint","access_approval_adhoc"]
And the important thing is I need to use only this buger/jsonparser , i cant use anything else. Can someone help me with some code to achieve this ?