cleanup json deserialize