token parsing, Match and json refactoring, xml