correct API for Json format