A quick silly question, subjecting kotlinx.serialization: is it recommended to create one Json() instance and inject it throughout your project or create a new one on every use?
d
Dominaezzz
05/12/2020, 5:24 PM
#C7A1U5PTM next time.
I recommended creating one
SerialModule
and injecting it throughout your project.
The same may apply to
JsonConfiguration
and
Json
depending on your project.
If you have to ask, then create a global instance.