// GenerateJsonComplex generates a JSON string out of a Variant with a complex type (flatbuffers) and the metadata of this data.
// Parameter data is a Varaint that contains data of complex data type (flatbuffers). If data is empty (VariantType::UNKNOWN) type is converted to json schema.
// Parameter type is a Variant that contains type of data (Variant with flatbuffers BFBS)
// Parameter indentStep is a indentation length for json string.
// It returns generated JSON as a Variant (string).
GenerateJsonComplex generates a JSON string out of a Variant with a complex type (flatbuffers) and the metadata of this data.
Parameter data is a Varaint that contains data of complex data type (flatbuffers). If data is empty (VariantType::UNKNOWN) type is converted to json schema.
Parameter type is a Variant that contains type of data (Variant with flatbuffers BFBS)
Parameter indentStep is a indentation length for json string.
It returns generated JSON as a Variant (string).
// GenerateJsonComplex generates a JSON string out of a Variant with a complex type ( flatbuffers ) and the metadata of this data . // Parameter data is a Varaint that contains data of complex data type ( flatbuffers ) . If data is empty ( VariantType :: UNKNOWN ) type is converted to json schema . // Parameter type is a Variant that contains type of data ( Variant with flatbuffers BFBS ) // Parameter indentStep is a indentation length for json string . // It returns generated JSON as a Variant ( string ) .
func (c *Converter) GenerateJsonComplex(data []byte, ty []byte, indentStep int) (Result, []byte) {
	d := NewVariant()
	defer DeleteVariant(d)
	d.SetFlatbuffers(data)
	t := NewVariant()
	defer DeleteVariant(t)
	t.SetFlatbuffers(ty)
	r, json := c.generateJSONComplex(*d, *t, indentStep)
	defer DeleteVariant(json)
	if r != ResultOk {
		return r, nil
	}
	return r, []byte(json.GetString())
}
func ( c * Converter ) GenerateJsonComplex ( data [ ] byte , ty [ ] byte , indentStep int ) ( Result , [ ] byte ) { d := NewVariant ( ) defer DeleteVariant ( d ) d . SetFlatbuffers ( data ) t := NewVariant ( ) defer DeleteVariant ( t ) t . SetFlatbuffers ( ty ) r , json := c . generateJSONComplex ( * d , * t , indentStep ) defer DeleteVariant ( json ) if r != ResultOk { return r , nil } return r , [ ] byte ( json . GetString ( ) ) }
GenerateJsonComplex generates a JSON string out of a Variant with a complex type (flatbuffers) and the metadata of this data.
GenerateJsonComplex generates a JSON string out of a Variant with a complex type ( flatbuffers ) and the metadata of this data .