I am trying to extract a specific value from an API query and looking for the most efficient way to achieve this.
This returns:
{"lamports":291171461600,"ownerProgram":"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA","type":"token_account","rentEpoch":283,"account":"METAmTMXwdb8gYzyCPfXXFmZZw4rUsXX58PNsDg7zjL","tokenInfo":{"name":"Solice","symbol":"SLC","price":1.28,"volume":1253400,"decimals":6,"tokenAuthority":null,"supply":"400000000000000","type":"token_address"}}
However, I only need the value of "supply", which in this case is 400000000000000.
The solution should be minimal and machine-readable without relying on JavaScript processing.
My initial thought was using JS to filter it, but that's not ideal due to the reliance on JS processing.