41const char*
from_json(flecs::entity_t tid,
void* value,
const char *json, flecs::from_json_desc_t *desc =
nullptr) {
51const char*
from_json(T* value,
const char *json, flecs::from_json_desc_t *desc =
nullptr) {
61const char*
from_json(
const char *json, flecs::from_json_desc_t *desc =
nullptr) {
70const char*
from_json_file(
const char *json, flecs::from_json_desc_t *desc =
nullptr) {
FLECS_API const char * ecs_world_from_json(ecs_world_t *world, const char *json, const ecs_from_json_desc_t *desc)
Parse JSON object with multiple entities into the world.
FLECS_API const char * ecs_world_from_json_file(ecs_world_t *world, const char *filename, const ecs_from_json_desc_t *desc)
Same as ecs_world_from_json(), but loads JSON from file.
FLECS_API char * ecs_ptr_to_json(const ecs_world_t *world, ecs_entity_t type, const void *data)
Serialize value into JSON string.
FLECS_API char * ecs_world_to_json(ecs_world_t *world, const ecs_world_to_json_desc_t *desc)
Serialize world into JSON string.
FLECS_API const char * ecs_ptr_from_json(const ecs_world_t *world, ecs_entity_t type, void *ptr, const char *json, const ecs_from_json_desc_t *desc)
Parse JSON string into value.
flecs::string to_json(flecs::entity_t tid, const void *value)
Serialize untyped value to JSON.
const char * from_json_file(const char *json, flecs::from_json_desc_t *desc=nullptr)
Deserialize JSON file into world.
const char * from_json(const char *json, flecs::from_json_desc_t *desc=nullptr)
Deserialize JSON into world.
flecs::string to_json(const T *value)
Serialize value to JSON.
flecs::string to_json()
Serialize world to JSON.
flecs::string to_json(flecs::entity_t tid, const void *value)
Serialize untyped value to JSON.
const char * from_json(flecs::entity_t tid, void *value, const char *json, flecs::from_json_desc_t *desc=nullptr)
Deserialize value from JSON.
const char * from_json(T *value, const char *json, flecs::from_json_desc_t *desc=nullptr)
Deserialize value from JSON.