Fwupd.Codec.to_json

### Method

# Fwupd Codecto_json

since: 2.0.0

#### Declaration [src]

    void
    fwupd_codec_to_json (
      FwupdCodec* self,
      FwupdJsonObject* json_obj,
      FwupdCodecFlags flags
    )

#### Description [src]

Converts an object that implements `FwupdCodec` to a JSON builder object.

Available since: 2.0.0

#### Parameters

`json_obj`

  Type: `FwupdJsonObject`

  A JSON builder.

  The data is owned by the caller of the method.

`flags`

  Type: `FwupdCodecFlags`

  A `FwupdCodecFlags`, e.g. `FWUPD_CODEC_FLAG_TRUSTED`.