When we first added JSON storage for users we saw people were recommending the TypeAdapter to be used over the JsonSerializer as the performance is much better with that one.
There is a problem with TypeAdapter tho:
order in the json file matters which means it is very hard to add new options which should get a default value if not available.
Regarding the performance issue, according to a few sources it should be negligible as long as the json tree remains pretty flat which is true in the case of a ChatUser.
When we first added JSON storage for users we saw people were recommending the TypeAdapter to be used over the JsonSerializer as the performance is much better with that one.
There is a problem with TypeAdapter tho:
Regarding the performance issue, according to a few sources it should be negligible as long as the json tree remains pretty flat which is true in the case of a ChatUser.