Skip to content

Instantly share code, notes, and snippets.

@Pavneet-Sing
Created May 6, 2020 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pavneet-Sing/4a2a8d0721188327c20e3ef949315314 to your computer and use it in GitHub Desktop.
Save Pavneet-Sing/4a2a8d0721188327c20e3ef949315314 to your computer and use it in GitHub Desktop.
// import com.fasterxml.jackson.module.kotlin.registerKotlinModule
// import com.fasterxml.jackson.databind.ObjectMapper
val mapper = ObjectMapper().registerKotlinModule()
println(mapper.readValue(dataJSONStr, Person::class.java))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment