Skip to content

What is the recommended way to make a deep copy of a request in KP? #6

Answered by krgauraw
joffinjoy asked this question in Q&A
Discussion options

You must be logged in to vote

@joffinjoy In order to make a deep copy of Sunbird Request, you can serialize it and then deserialize back as a Request class object. For serialization and deserialization, you can use exiting files like JsonUtils or ScalaJsonUtils.

cc: @pallakartheekreddy

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@Krishnaj20
Comment options

@joffinjoy
Comment options

Answer selected by joffinjoy
Comment options

You must be logged in to vote
5 replies
@Krishnaj20
Comment options

@pramodkvarma
Comment options

@Krishnaj20
Comment options

@pramodkvarma
Comment options

@Krishnaj20
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants