A helper to build json-api payload objects from plain json objects