# Function command::object::message_json_len

> The bytes of a message's `content` and `embeds` as JSON, counted against `MESSAGE_JSON_MAX`.

`zaun_community_protocol::command::object::message_json_len` · Function

```rust
pub fn message_json_len(content: &str, embeds: &[Embed]) -> usize
```

The bytes of a message's `content` and `embeds` as JSON, counted against
`MESSAGE_JSON_MAX`.

Writing a parsed value never takes more bytes than the text it was read from (strings,
numbers and keys come out in their shortest form, absent and default fields stay absent),
so the content and embeds of one `message.send` are always within the limit.

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/object/embed/fn.message_json_len.html)
