json to post in api success, need to add validation and persist to db