Json.Object.set_member

### Method

# Json Objectset_member

#### Declaration [src]

    void
    json_object_set_member (
      JsonObject* object,
      const gchar* member_name,
      JsonNode* node
    )

#### Description [src]

Sets the value of a member inside an object.

If the object does not have a member with the given name, a new member is created.

If the object already has a member with the given name, the current value is overwritten with the new.

Available since: | 0.8

#### Parameters

`member_name` | `const gchar*`
| The name of the member.
| The data is owned by the caller of the function.
| The string is a NUL terminated UTF-8 string.
`node` | `JsonNode`
| The value of the member.
| The instance takes ownership of the data, and is responsible for freeing it.