Switched json functions.