Some objective-c json magic.