Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How do I write Json path expression for my payload

Here is my payload and I need to extract short_name of country & state

$.results[0].address_components[what goes here to extract].short_name

The objects are not consistent.

{"long_name":"San Francisco County","short_name":"San Francisco County","types":["administrative_area_level_2","political"]},{"long_name":"California","short_name":"CA","types":["administrative_area_level_1","political"]},{"long_name":"United States","short_name":"US","types":["country","political"]},
0 4 863
4 REPLIES 4