Update JSON_FORCE_OBJECT usage based on whether params are empty