removed "safe json" parsing and replaced with built in json parsing