Serializing null values

172 views
Skip to first unread message

John D

unread,
Apr 10, 2012, 10:37:10 PM4/10/12
to res...@googlegroups.com
Hello,

Does anyone know if it's possible to serialize null attributes for an object with RestKit?  For example, I have a Person who's last name I would like to delete on the server, so I want to send {"first_name": "Fred", "last_name":null}.

Any ideas?

Thanks,
John

Blake Watters

unread,
Apr 11, 2012, 10:59:05 PM4/11/12
to res...@googlegroups.com
I don't believe there is support for serializing to a null like that, but it would be straightforward to add. I've opened a Github issue to track it: https://github.com/RestKit/RestKit/issues/669

John Dzak

unread,
Apr 11, 2012, 11:25:22 PM4/11/12
to res...@googlegroups.com
Thanks Blake.  I'll write a patch.

MountainMath

unread,
Jul 17, 2012, 1:01:38 PM7/17/12
to res...@googlegroups.com
Any progress on this? I am having the same issue. 

--jens

On Wednesday, April 11, 2012 8:25:22 PM UTC-7, John D wrote:
Thanks Blake.  I'll write a patch.

Reply all
Reply to author
Forward
0 new messages