Fwupd.JsonObject.add_string

### Method

# Fwupd JsonObjectadd_string

since: 2.1.1

#### Declaration [src]

    void
    fwupd_json_object_add_string (
      FwupdJsonObject* self,
      const gchar* key,
      const gchar* value
    )

#### Description [src]

Adds a string value to the JSON object. If the node already exists the old one is replaced.

Available since: 2.1.1

#### Parameters

`key`

  Type: `const gchar*`

  Dictionary key.

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

`value`

  Type: `const gchar*`

  Value, or `NULL`.

  The argument can be `NULL`.
  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.