changed from xml to JSON parse