used json instead of xml