New json functions.