Anyone, comments? Or does no one care about such feature? -+ Tatu +-
On Mon, Sep 12, 2016 at 5:31 AM, lokesh N <[email protected]> wrote: > 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 > delimiter. > > 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. > > Thanks, > Lokesh > > -- > 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 to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 to [email protected]. For more options, visit https://groups.google.com/d/optout.
