---
url: "https://vueda.dev/v3/reference/api/js/utils/multipart/functions/encodeObjectBody.md"
title: "encodeObjectBody"
---

# encodeObjectBody

## Overview

Keep JSON for saves without files. Multipart fields contain JSON values, with
null placeholders for files; the manifest maps file part names to their paths.
Unsupported multipart values throw before a request is sent.

## Signature

`encodeObjectBody(object)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-object">object</span> | `object` | yes | The values to save. |

### Returns

`string | FormData`

The encoded request body.

## Source

`client/lib/utils/multipart.js:33`
