added an API function to check JSON syntax prior to parsing to compensate for the inability to roll back invalid partially imported JSON