How to get list all variable and their value from a cURL get from a site API ? Or get all the variables with the value "required" on it.