Skip to content
Flecs
v4.1
Search
Ctrl K
include
flecs
addons
cpp
mixins
json
iterable.inl
Go to the documentation of this file.
1
/**
2
* @file addons/cpp/mixins/json/iterable.inl
3
* @brief JSON iterable mixin.
4
*/
5
6
/** Serialize an iterator result to JSON.
7
*
8
* @memberof flecs::iter
9
* @ingroup cpp_addons_json
10
*/
11
flecs::string
to_json
(flecs::iter_to_json_desc_t *desc =
nullptr
) {
12
char
*json =
ecs_iter_to_json
(&it_, desc);
13
return
flecs::string
(json);
14
}
ecs_iter_to_json
FLECS_API char * ecs_iter_to_json(ecs_iter_t *iter, const ecs_iter_to_json_desc_t *desc)
Serialize iterator into JSON string.
flecs::iter::to_json
flecs::string to_json(flecs::iter_to_json_desc_t *desc=nullptr)
Serialize an iterator result to JSON.
Definition
iterable.inl:11
flecs::string
Owned string wrapper.
Definition
string.hpp:15
Esc
↑
↓
to navigate
↵
to open
Esc
to close