set_member_name


Description:

public unowned Builder? set_member_name (string member_name)

Sets the name of the member in an object.

This function must be followed by of these functions:

  • [method@Json.Builder.add_value], to add a scalar value to the member
  • [method@Json.Builder.begin_object], to add an object to the member
  • [method@Json.Builder.begin_array], to add an array to the member

This function can only be called within an open object.

Parameters:

this

a builder

member_name

the name of the member

Returns:

the builder instance