This discussion is about representing comma separated lists for String,
int and long. An example representing String as comma separated list
To represent this comma separated format, we will use @JsonFormat
annotation with a pattern of something like "\w+(,\w)*". The pattern
represented here is a regex pattern which can be applied on a string to get
the list of values while deserialization, but while serialization we cannot
use this regex pattern to serialize an array into a string separated by a
One suggestion would be to use a static pattern for representing the comma
separated values like "\w,\w" which we can use to serialize and deserialize
the comma separated scalars and strings.
Any suggestions or thoughts on this.
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.