kw_deserialize()

kw_deserialize()#

The function kw_deserialize() deserializes specific fields in a JSON object, converting stored serialized data back into its original binary representation.

Prototype

json_t *kw_deserialize(
    hgobj     gobj,
    json_t   *kw
);

Parameters

Key

Type

Description

gobj

[hgobj](#hgobj)

A handle to the gobj (generic object) that may be used for logging or context.

kw

[json_t *](#json_t)

A JSON object containing serialized fields that need to be deserialized.


Return Value

Returns the same JSON object kw with its serialized fields converted back to their original binary representation.

Notes

The function iterates over predefined serialized fields and applies the corresponding deserialization function. If a field is found and successfully deserialized, the original serialized field is removed from the JSON object.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples