After using POST method for the following object, I want to return the id of created object in JSON format. I tried converting a python dict to json format it didn\'t work.