depreciated simplejson removed and used json instead with a try except