Created
February 28, 2018 16:53
-
-
Save arnaudjolly/2ed4d0c7518761129e0439552ac48f9b to your computer and use it in GitHub Desktop.
Intellij debug watcher: export object to json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new ObjectMapper() | |
.setSerializationInclusion(JsonInclude.Include.NON_NULL) | |
.writerWithDefaultPrettyPrinter() | |
.writeValueAsString( myObject ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
excellent tip to export.
It's what I need to mock and object after debugging.
Thanks @arnaudjolly