kept status and success as json value and tested api