A wrapper of the native PHP json functions