automatically parse json for payload