More JSON code to parse response, fixed spaces issue.