Re: [Twisted-Python] question : json.loads failed using LineReceiver data

2012-05-14 Thread exarkun
On 08:53 am, b...@indoakses-online.com wrote: >Dear All .. > >I'm trying to received json formated text using LineReceiver > >Here is my code >START >class ArduinoReceiver(LineReceiver): > def __init__(self): > print 'INIT : ArduinoReceiver' > > def lineReceived(self, line):

Re: [Twisted-Python] question : json.loads failed using LineReceiver data

2012-05-14 Thread Itamar Turner-Trauring
On 05/14/2012 04:53 AM, bino oetomo wrote: > Kindly please tell me why the 'json.loads' is failed in my tac file > while it work in python console. > Perhaps the JSON spans more than one line? Printing out the repr() of the lines you're receiving may be informative. __