Move functions deserialize and serialize to leptonix-json