Cast json stuff to object