Finished implamenting ObjectToJson
Added thread.emit stub