Skip to content

SpaceTech

Exploration of Information, Communication and Technology

  • Home
  • Resx Builder
  • About
  • LinkedIn
  • Github

How to deserialize Java mapper readValue on list

November 11, 2022December 8, 2022 Bjarne

Following up on https://spacetech.dk/how-to-convert-json-string-to-java-model-object.html. Now we want to deserialize a java object on a list with the ObjectMapper readvalue.

How To Convert Json String To Java Model Object

To accomplish this you can use the TypeReference like this

List<MyObject> myObjects = mapper.readValue(jsonInput, new TypeReference<List<MyObject>>(){});
Posted in Technology

About

Hey! Engineer here. This is my engineering diary. I enjoy creating things, whether that be websites, plugins, mobile apps. I'm currently playing around in an engineering department where I work on a wide variety of interesting and meaningful projects on a daily basis. You’re welcome to connect and say hey on LinkedIn. Enjoy!


  • Creating Custom Voice Text-to-Speech with Kvoicewalk and Kokoro-Web
  • Navigating Python Dependency Hell: A Real-World Troubleshooting Guide
  • NASA’s SPHEREx Completes the First Cosmic Rainbow Map
  • SpaceX’s Strategic Shift: Lowering the Starlink Shell
  • The Antarctic Giant: NASA’s Stratospheric Balloon Science

Copyright ©SpaceTech

Clean Theme by WPVKP