I want to use ijson to read an object from a serial port. I can read from the port fine, and I can use ijson to deserialize an object from a stream, but using ijson from a serial port just isn't enumerating anything.
This is an example of my code:
self.serial_port = serial.Serial(
port=self.port_name, \
baudrate=115200, \
parity=serial.PARITY_NONE, \
stopbits=serial.STOPBITS_ONE, \
bytesize=serial.EIGHTBITS, \
timeout=None)
print 'start reading'
parser = ijson.parse(self.serial_port)
for prefix, event, value in parser:
print `value`
print 'stop reading'
and my output is just
start reading