Improved exception handling changed JSON parser to accept char array