Obtenir l'index d'une clé dans json

J'ai un json comme suit:

json = { "key1" : "watevr1", "key2" : "watevr2", "key3" : "watevr3" }

Maintenant, je veux savoir l'indice d'une clé, dire "key2" en json qui est de 1. Est-il possible?

source d'informationauteur shreyj