roll: @amercader 
Please take a look. It addresses https://sentry.io/open-knowledge/goodtablesio-production/issues/287753774/
diff --git a/goodtables/presets/table.py b/goodtables/presets/table.py
index 0248096..940a85d 100644
--- a/goodtables/presets/table.py
+++ b/goodtables/presets/table.py
@@ -39,6 +39,10 @@ def table(source, schema=None, **options):
                     warnings.append(
                         'Table schema "%s" has a validation error "%s"' %
                         (schema, str(error).splitlines()[0]))
+            except Exception as error:
+                warnings.append(
+                    'Table Schema "%s" has a loading error "%s"' %
+                    (schema, error))
 
     # Add table
     if not warnings:

Catch jsontableschema.exceptions.InvalidJSONError
# Overview

For `table` and `datapackage` datasets it has to be caught. See - https://sentry.io/open-knowledge/goodtablesio-production/issues/287753774/
diff --git a/tests/presets/test_table.py b/tests/presets/test_table.py
index 1281a86..91fe320 100644
--- a/tests/presets/test_table.py
+++ b/tests/presets/test_table.py
@@ -20,3 +20,10 @@ def test_preset_table_but_got_datapackage_issue_187():
     assert len(warnings) == 1
     assert len(tables) == 0
     assert 'Use "datapackage" preset' in warnings[0]
+
+
+def test_preset_table_invalid_json_issue_196():
+    warnings, tables = presets.table('valid.csv', schema='data/invalid_json.json')
+    assert len(warnings) == 1
+    assert len(tables) == 0
+    assert 'has a loading error' in warnings[0]

pip install --upgrade -e .[develop,ods]
parse_log_pytest
pytest
mock pyyaml pytest
apt-get update apt-get install -y gcc
3.6
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
attrs @ file:///opt/conda/conda-bld/attrs_1642510447205/work
boto3==1.23.10
botocore==1.26.10
certifi==2021.5.30
chardet==5.0.0
charset-normalizer==2.0.12
click==6.7
datapackage==0.8.9
distlib==0.3.9
et-xmlfile==1.1.0
ezodf==0.3.2
filelock==3.4.1
future==0.18.3
-e git+https://github.com/frictionlessdata/goodtables-py.git@25db6e4c20efc0a626323ed3bbef23845acbaf47#egg=goodtables
greenlet==2.0.2
idna==3.10
ijson==3.3.0
importlib-metadata==4.8.3
importlib-resources==5.4.0
iniconfig @ file:///home/linux1/recipes/ci/iniconfig_1610983019677/work
isodate==0.6.1
jmespath==0.10.0
jsonlines==3.1.0
jsonschema==2.6.0
jsontableschema==0.10.1
linear-tsv==1.1.0
lxml==3.8.0
mccabe==0.7.0
mock==5.2.0
more-itertools @ file:///tmp/build/80754af9/more-itertools_1637733554872/work
openpyxl==3.1.3
packaging @ file:///tmp/build/80754af9/packaging_1637314298585/work
platformdirs==2.4.0
pluggy @ file:///tmp/build/80754af9/pluggy_1615976315926/work
py @ file:///opt/conda/conda-bld/py_1644396412707/work
pycodestyle==2.10.0
pydocstyle==6.3.0
pyflakes==3.0.1
pylama==7.7.1
pyparsing @ file:///tmp/build/80754af9/pyparsing_1635766073266/work
pytest==6.2.4
python-dateutil==2.9.0.post0
PyYAML==6.0.1
requests==2.27.1
rfc3986==0.4.1
s3transfer==0.5.2
six==1.17.0
snowballstemmer==2.2.0
SQLAlchemy==1.4.54
tabulator==1.53.5
toml @ file:///tmp/build/80754af9/toml_1616166611790/work
tox==3.28.0
typing_extensions @ file:///opt/conda/conda-bld/typing_extensions_1647553014482/work
unicodecsv==0.14.1
urllib3==1.26.20
virtualenv==20.17.1
xlrd==2.0.1
zipp @ file:///tmp/build/80754af9/zipp_1633618647012/work

name: goodtables-py
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - attrs=21.4.0=pyhd3eb1b0_0
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2021.5.30=py36h06a4308_0
  - importlib_metadata=4.8.1=hd3eb1b0_0
  - iniconfig=1.1.1=pyhd3eb1b0_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - more-itertools=8.12.0=pyhd3eb1b0_0
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - packaging=21.3=pyhd3eb1b0_0
  - pip=21.2.2=py36h06a4308_0
  - pluggy=0.13.1=py36h06a4308_0
  - py=1.11.0=pyhd3eb1b0_0
  - pyparsing=3.0.4=pyhd3eb1b0_0
  - pytest=6.2.4=py36h06a4308_2
  - python=3.6.13=h12debd9_1
  - readline=8.2=h5eee18b_0
  - setuptools=58.0.4=py36h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - toml=0.10.2=pyhd3eb1b0_0
  - typing_extensions=4.1.1=pyh06a4308_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.6.4=h5eee18b_1
  - zipp=3.6.0=pyhd3eb1b0_0
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - boto3==1.23.10
      - botocore==1.26.10
      - chardet==5.0.0
      - charset-normalizer==2.0.12
      - click==6.7
      - datapackage==0.8.9
      - distlib==0.3.9
      - et-xmlfile==1.1.0
      - ezodf==0.3.2
      - filelock==3.4.1
      - future==0.18.3
      - greenlet==2.0.2
      - idna==3.10
      - ijson==3.3.0
      - importlib-metadata==4.8.3
      - importlib-resources==5.4.0
      - isodate==0.6.1
      - jmespath==0.10.0
      - jsonlines==3.1.0
      - jsonschema==2.6.0
      - jsontableschema==0.10.1
      - linear-tsv==1.1.0
      - lxml==3.8.0
      - mccabe==0.7.0
      - mock==5.2.0
      - openpyxl==3.1.3
      - platformdirs==2.4.0
      - pycodestyle==2.10.0
      - pydocstyle==6.3.0
      - pyflakes==3.0.1
      - pylama==7.7.1
      - python-dateutil==2.9.0.post0
      - pyyaml==6.0.1
      - requests==2.27.1
      - rfc3986==0.4.1
      - s3transfer==0.5.2
      - six==1.17.0
      - snowballstemmer==2.2.0
      - sqlalchemy==1.4.54
      - tabulator==1.53.5
      - tox==3.28.0
      - unicodecsv==0.14.1
      - urllib3==1.26.20
      - virtualenv==20.17.1
      - xlrd==2.0.1
prefix: /opt/conda/envs/goodtables-py

tests/presets/test_table.py::test_preset_table_invalid_json_issue_196
tests/presets/test_table.py::test_preset_table tests/presets/test_table.py::test_preset_table_but_got_datapackage_issue_187
goodtables/presets/table.py
goodtables/presets/table.py