# Function framing::escaped_len

> The bytes `text` takes written inside a JSON string, as a frame message travels in its application data: `"` and `\` take two, the control characters JSON writes as `\b`, `\t`, `\n

`zaun_community_protocol::framing::escaped_len` · Function

```rust
pub fn escaped_len(text: &str) -> usize
```

The bytes `text` takes written inside a JSON string, as a frame message travels in its
application data: `"` and `\` take two, the control characters JSON writes as
`\b`, `\t`, `\n`, `\f`, `\r` two, every other control character six (`\u00XX`).

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/framing/encode/fn.escaped_len.html)
