# [save_entity](save_entity.hpp)

```cpp
nlohmann::json save_entity(entt::const_handle e) noexcept;
```

Returns a JSON object generated by serializing the entity.

For components to be serializable, the [save](../functions/save.md) `meta component` must first have been registered for them.