nit: maybe instead of the xhr you can directly pass the data you want to be parsed. |data| ?