emitJSON/receiveJSON fixes
fix missing getNumber bug