POST method to parse json payload