Additional text encountered after finished reading JSON content

تعرفه تبلیغات در سایت

آرشیو مطالب

امکانات وب

Vote count: 0

So I was running the code below

JObject.Parse(input.ToString(Encoding.UTF8)).ToFlatDictionary())

And ran into this error message

Additional text encountered after finished reading JSON content

What does this mean? Other questions say I have to surround my JSON with []'s both ends but do I do this when sending it or? I'm a little confused. I basically send JSON between my client&server.

internal class JsonToPacketDecoder : ByteToMessageDecoder
{
    protected override void Decode(IChannelHandlerContext context, IByteBuffer input, List output)
    {
        output.Add(new IncomingPacket(JObject.Parse(input.ToString(Encoding.UTF8)).ToFlatDictionary()));
    }
}

    
asked 42 secs ago
seegal

نویسنده : استخدام کار بازدید : 0 تاريخ : پنجشنبه 23 فروردين 1397 ساعت: 1:14
برچسب‌ها :

خبرنامه

عضویت

نام کاربري :
رمز عبور :