fixed false could not connect error
added json parsing. For some reason, the parsed json is not an array...