Removing gson dependence from client side (because of ios)