Json.boxed_serialize
Description: Reference for Json.boxed_serialize

### Function

# Jsonboxed_serialize

#### Declaration [src]

    JsonNode*
    json_boxed_serialize (
      GType gboxed_type,
      gconstpointer boxed
    )

#### Description [src]

Serializes a pointer to a `GBoxed` of the given type into a `JsonNode`.

If the serialization is not possible, this function will return `NULL`.

Available since: | 0.10

#### Parameters

`gboxed_type` | `GType`
| A boxed type.
`boxed` | `gconstpointer`
| A pointer to a boxed of type `gboxed_type`

#### Return value

Returns: | `JsonNode`
| A node with the serialized boxed type.
| The caller of the function takes ownership of the data, and is responsible for freeing it.
| The return value can be `NULL`.