This discussion is about representing comma separated lists for String[], 
int[] and long[]. An example representing String[] as comma separated list 
would be,

  "StringArr": "item1,item2,item3"

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 
"jackson-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
For more options, visit

Reply via email to