ecs_ptr_to_json

Function ecs_ptr_to_json 

Source
pub unsafe extern "C" fn ecs_ptr_to_json(
    world: *const ecs_world_t,
    type_: ecs_entity_t,
    data: *const c_void,
) -> *mut c_char
Expand description

Serialize value into JSON string. Same as ecs_array_to_json, with count = 0.

@param world The world. @param type The type of the value to serialize. @param data The value to serialize. @return String with JSON expression, or NULL if failed.