Has anyone worked with Amazon Ion? (https://amzn.github.io/ion-docs/guides/cookbook.html)
I have to write a doc with IonWriter, the problem being that the schema needs something like this:
{
name: "schemaName",
valid: [a, b, c]
}
but I am unable to find a way to write [a,b,c] without quotes.
Things I have tried:
- used
writeString()by converting list to string - used
writeByte()that resulted in byte data which is not required - used
writeSymbol()that resulted in same as string.
Is there a way to do this?
It looks like the use case of data type
symbolbased on Amazon ION specification https://amzn.github.io/ion-docs/docs/spec.html#symbol, you can try code below.Output