Get from a Task the display value of a specific custom field in python

Sorry I’m probably not understanding. I extract from a project all the tasks with their custom field values and custom field gid. For each task I will have a very long json, I wanted to ask if it was possible to make a precise extraction of the value on a custom field gid that I know all the tasks have.