create_raw_payload function

Create properly-formatted JSON payload for API calls. Removes NULLS