parse json tokens and generate events; combine generic chars to words
describe state machine for json parsing