preserializing json data