make json callable to be consistent with the latest requests