I want to fetch just the postal code from this object and use the postal code in a JSON to call an API. Every entry in the database has an address field that is stored in the format shown below. Please suggest something that would work.
{“address”:{“formatted”:“43-3-47 asd zxcy delhi\nIndia\n123456987”,“city”:“city”,“country”:“IND”,“addressLine”:“43-3-47 asd zxcy delhi”,“addressLine2”:“some colony”," postalCode ":“10000”,“subdivision”:“DL”},“firstName”:“ABC”,“lastName”:“XYZ”,“email”:“aaaabgmail.com”,“phone”:“123456987”,“paymentMethod”:“offline”,“paymentGatewayTransactionId”:“123456789”}