Getting JSON Key from Value or Inverting JSON Data
问题 Getting single key from Value I would like to do a backwards selection from the following JSON. I'd like to extract the abbreviation for a particular state. In this situation, the abbreviation is the key, and the value that I'm starting with is the value. Certainly I can loop through each value, comparing the value to my value, and select the key when the match is made. Is this the best way to approach something like this? Or is there a better way? Inverting JSON Data Another option would to