Skip to content

Instantly share code, notes, and snippets.

@arnaudjolly
Created February 28, 2018 16:53
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arnaudjolly/2ed4d0c7518761129e0439552ac48f9b to your computer and use it in GitHub Desktop.
Save arnaudjolly/2ed4d0c7518761129e0439552ac48f9b to your computer and use it in GitHub Desktop.
Intellij debug watcher: export object to json
new ObjectMapper()
.setSerializationInclusion(JsonInclude.Include.NON_NULL)
.writerWithDefaultPrettyPrinter()
.writeValueAsString( myObject )
@hortegag
Copy link

hortegag commented Apr 10, 2023

excellent tip to export.
It's what I need to mock and object after debugging.
Thanks @arnaudjolly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment