Fixed bug in JSONChat.py.