Validate json payloads
Don't try saving any leftover temp_ids