[ERROR:] object:<JSON decoder error:> function:<json_to_valu

Post Reply
Posts: 21
Joined: Mon Aug 31, 2015 12:29 am

[ERROR:] object:<JSON decoder error:> function:<json_to_valu

Post by keevitaja » Sun Sep 06, 2015 9:28 pm

Code: Select all

[ERROR:] object:<JSON decoder error:> function:<json_to_value>
         <Lua error:InvalidJSONInput: lexical error: invalid character inside string.
               { "num": 32460, "name": "[1;33mWelcome to Grandmarket 
                     (right here) ------^
 at lua_yajl.c line 310>
I think this error comes from the gmcp. At least gmcp room info is not available. last visited room is shown


This happens in Aardwolf mud. 10s from recall

EDIT: This is a serious issue. I think it throws each time when room name is in different colour!

User avatar
Posts: 920
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: [ERROR:] object:<JSON decoder error:> function:<json_to_

Post by SlySven » Mon Sep 07, 2015 9:12 pm

Yep, that is the ANSI code for Bold and a Green foreground if I recall my ANSI ESC codes correctly, the highlighted character (before the '[' indicated is the ASCII ESC {character 27 or \033} code which is being rejected). Whether ANSI colour codes should be there is another matter which someone else has experienced. There Vadi pointed out that there would be something like ansiToRgb() but I don't know much more than that. I'm not in the right OS right now so will have to wait before I can investigate more...

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 2 guests