我在Unity C#中制作游戏,每隔10秒向外部服务器发出关于玩家播放状态的请求。例如,服务器使用换行符分隔的JSON进行响应。
{"gamestate":"play","score":120,"compare":"ascending","compitPosition":"5/13"}
{"gamestate":"play","score":80,"compare":"descending","compitPosition":"9/13"}
{"gamestate":"pause","score":70,"compare":"descending","compitPosition":"8/13"}
有没有办法解析这种换行符分隔的json,以便我可以获取单个数据或将其转换为正确的JSON格式来解析和获取数据?