Google's mechanism to report mutual funds is a bit different, and the way it returns data sometimes has a ',}' that causes the json parser to hit an exception. Also, the keys are different from non-mutual funds. I used the hackery below to get past it, but you may want to do something more elegant:
try:
jayson = r.text.replace('\n', '')
mutual funds have a ,} that messes up the json parser
Google's mechanism to report mutual funds is a bit different, and the way it returns data sometimes has a ',}' that causes the json parser to hit an exception. Also, the keys are different from non-mutual funds. I used the hackery below to get past it, but you may want to do something more elegant:
try: jayson = r.text.replace('\n', '')
mutual funds have a ,} that messes up the json parser