I have a return of a request in the following format:
In there are the types of cards json has returned. I want to get each type without manually typing their names.
Currently I can get it by doing this:
response.paymentMethods.CREDIT_CARD.options.AMEX
But I need to type the name of each one. I want to count how many options you have and get them dynamically. Can someone help me?