// ParseJsonComplex generates a Variant out of a JSON string containing the (complex) data.
// Parameter json is a data of the Variant as a json string.
// Parameter type (ty) is a Variant that contains type of data (Variant with bfbs flatbuffer content).
// It returns a result status of the function, data (array of byte) which contains the data, error Error as error object.
ParseJsonComplex generates a Variant out of a JSON string containing the (complex) data.
Parameter json is a data of the Variant as a json string.
Parameter type (ty) is a Variant that contains type of data (Variant with bfbs flatbuffer content).
It returns a result status of the function, data (array of byte) which contains the data, error Error as error object.
// ParseJsonComplex generates a Variant out of a JSON string containing the ( complex ) data . // Parameter json is a data of the Variant as a json string . // Parameter type ( ty ) is a Variant that contains type of data ( Variant with bfbs flatbuffer content ) . // It returns a result status of the function data ( array of byte ) which contains the data error Error as error object .
func (c *Converter) ParseJsonComplex(json []byte, ty []byte) (Result, []byte, error) {
	t := NewVariant()
	defer DeleteVariant(t)
	t.SetFlatbuffers(ty)
	r, data, err := c.parseJSONComplex(json, *t)
	defer DeleteVariant(data)
	defer DeleteVariant(err)
	if r != ResultOk {
		return r, []byte{}, errors.New(err.GetString())
	}
	b := make([]byte, len(data.GetFlatbuffers()))
	copy(b, data.GetFlatbuffers())
	return r, b, nil
}
func ( c * Converter ) ParseJsonComplex ( json [ ] byte , ty [ ] byte ) ( Result , [ ] byte , error ) { t := NewVariant ( ) defer DeleteVariant ( t ) t . SetFlatbuffers ( ty ) r , data , err := c . parseJSONComplex ( json , * t ) defer DeleteVariant ( data ) defer DeleteVariant ( err ) if r != ResultOk { return r , [ ] byte { } , errors . New ( err . GetString ( ) ) } b := make ( [ ] byte , len ( data . GetFlatbuffers ( ) ) ) copy ( b , data . GetFlatbuffers ( ) ) return r , b , nil }
ParseJsonComplex generates a Variant out of a JSON string containing the (complex) data.
ParseJsonComplex generates a Variant out of a JSON string containing the ( complex ) data .