Define APIModel.to_json() for classes to override to post custom JSON that isn't just {attribute:value}