Created
September 20, 2022 22:33
-
-
Save s1monw1/0f063c164049379e21e359b7702d5793 to your computer and use it in GitHub Desktop.
This file contains 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
@JvmInline | |
value class JsonString(val value: String) | |
inline fun <reified T> JsonString.asJson() = | |
jacksonObjectMapper().readValue<T>(this.value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment