posted cart to JSON (optional)