// This function writes a JSON value.
// Parameter converter is a reference to the converter (see System json_converter()).
// Parameter address is an address of the node to write.
// Parameter json is a JSON value to write.
// It returns the status of function and error Error object.
This function writes a JSON value.
Parameter converter is a reference to the converter ).
Parameter address is an address of the node to write.
Parameter json is a JSON value to write.
It returns the status of function and error Error object.
// This function writes a JSON value . // Parameter converter is a reference to the converter ( see System json_converter () ) . // Parameter address is an address of the node to write . // Parameter json is a JSON value to write . // It returns the status of function and error Error object .
func (c *Client) WriteJsonSync(cv *Converter, address string, json []byte) (Result, error) {
	caddress := C.CString(address)
	defer C.free(unsafe.Pointer(caddress))
	cjson := C.CString(string(json))
	defer C.free(unsafe.Pointer(cjson))
	err := NewVariant()
	defer DeleteVariant(err)
	r := Result(C.DLR_clientWriteJsonSync(c.this, cv.this, caddress, cjson, err.this, nil))
	if r != Result(0) {
		return r, errors.New(err.GetString())
	}
	return r, nil
}
func ( c * Client ) WriteJsonSync ( cv * Converter , address string , json [ ] byte ) ( Result , error ) { caddress := C . CString ( address ) defer C . free ( unsafe . Pointer ( caddress ) ) cjson := C . CString ( string ( json ) ) defer C . free ( unsafe . Pointer ( cjson ) ) err := NewVariant ( ) defer DeleteVariant ( err ) r := Result ( C . DLR_clientWriteJsonSync ( c . this , cv . this , caddress , cjson , err . this , nil ) ) if r != Result ( 0 ) { return r , errors . New ( err . GetString ( ) ) } return r , nil }
This function writes a JSON value.
This function writes a JSON value .