Hi Guido, thanks, that's what I was looking for and I was looking at the wrong place.
Ingo Am 14.12.2012 20:16, schrieb Guido Medina:
Thats more related to Jackson object mapper, annotate your POJO like this: @JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL) public class MyPOJO{ ... ... } Hope that helps, Guido. On 14/12/12 17:16, Ingo Rockel wrote:Hi all, Is there a way to tell the riak-java-client to not store attributes with a null value into riak? I currently have a json object looking like this: {"status":1, "type":8, "content":"some text", "receiver":17542, "sender":317825, "creationTime":1290565802000, "answered":false, "contentPath":null, "refValue":null, "countOrAmountValue":null, "subType":0} which is derived from a POJO with these attributes. Note three values are "null" and I would like to not store them into riak to save space. Anyone? Ingo _______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
-- Software Architect Blue Lion mobile GmbH Tel. +49 (0) 221 788 797 14 Fax. +49 (0) 221 788 797 19 Mob. +49 (0) 176 24 87 30 89 [email protected] >>> qeep: Hefferwolf www.bluelionmobile.com www.qeep.net _______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
