added try catch finally block around json parsing
added try catch finally block around json parsing

suyashdb/bids-validator,nellh/bids-validator,nellh/bids-validator,Squishymedia/bids-validator,Squishymedia/BIDS-Validator,nellh/bids-validator