convenient parser for structured json/xml data