Added message if error in JSON