Pairing with json