Google search API: best way to work with JSON response

I am building an app that invokes Google search, results are passed back to GPT chat WITHOUT using of third party apps.

Google API (googleapis.com/customsearch) returns JSON. Looking for ideas"best practices" how to extract relevant information from JSON .

Currently I just take first 3 "snippet"s from JSON, use GPT to extract relevant information and pass pack into chat.