Support Questions
Find answers, ask questions, and share your expertise

Converting Avro String to Array

Converting Avro String to Array

New Contributor

Hi,

I have an Avro Schema where there is a field of type String which contains a comma separated list of values which I need to have as an array.

Input:

{
   "field" : "value1,value2,value3"
}

Output:

{
   "field" : [ "value1", "value2", "value3"]
}

How can I achieve this?

Don't have an account?