Something is causing some kind of invalid player data or something, as sometimes, when creating a world or joining a server for the first time, the player gets kicked out with a json error.
If I manage to reproduce it, I will put it in here. Unfortunately, the error really is telling very little about the reason behind this...