fixed the json issue, fixes #278