added generic json support to playerdata for flags and such