flip value and key for data.json