diff --git a/python_json_config/__version__.py b/python_json_config/__version__.py
index 1f356cc..cd7ca49 100644
--- a/python_json_config/__version__.py
+++ b/python_json_config/__version__.py
@@ -1,1 +1,1 @@
-__version__ = '1.0.0'
+__version__ = '1.0.1'
diff --git a/python_json_config/config_node.py b/python_json_config/config_node.py
index 6b63473..0b23352 100644
--- a/python_json_config/config_node.py
+++ b/python_json_config/config_node.py
@@ -47,6 +47,15 @@ class ConfigNode(object):
 
     __repr__ = __str__
 
+    """
+    These two methods are needed to enable pickling since this class overwrites __getattr__.
+    """
+    def __getstate__(self):
+        return vars(self)
+
+    def __setstate__(self, state):
+        vars(self).update(state)
+
 
 class Config(ConfigNode):
     def __init__(self, config_dict: dict):

Enable pickling of Config
Pickle tries to call `__getstate__` which fails since it is not handled in the custom `__getattr__` method.

Use [this solution](https://stackoverflow.com/a/50888571).
diff --git a/tests/config_node_test.py b/tests/config_node_test.py
index 422901e..86521fc 100644
--- a/tests/config_node_test.py
+++ b/tests/config_node_test.py
@@ -1,3 +1,4 @@
+import pickle
 from unittest import TestCase
 
 from python_json_config.config_node import ConfigNode
@@ -61,3 +62,10 @@ class ConfigNodeTest(TestCase):
         node = ConfigNode({1: 2, 3: 4})
         node_str = 'ConfigNode(path=[], values={1: 2, 3: 4})'
         self.assertEqual(str(node), node_str)
+
+    def test_pickle(self):
+        config = ConfigNode(self.config_dict)
+        pickle_conf = pickle.loads(pickle.dumps(config))
+        self.assertEqual(pickle_conf.key1, 1)
+        self.assertEqual(pickle_conf.key2.key3, 3)
+        self.assertEqual(pickle_conf.key2.key4.key5, 5)

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest
3.9
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
exceptiongroup==1.2.2
iniconfig==2.1.0
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
-e git+https://github.com/janehmueller/python-json-config.git@c5fc40ffa9a3543769b613f2a3cf6bb4f648d7a8#egg=python_json_config
tomli==2.2.1

name: python-json-config
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
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - exceptiongroup==1.2.2
      - iniconfig==2.1.0
      - packaging==24.2
      - pluggy==1.5.0
      - pytest==8.3.5
      - tomli==2.2.1
prefix: /opt/conda/envs/python-json-config

tests/config_node_test.py::ConfigNodeTest::test_pickle
tests/config_node_test.py::ConfigNodeTest::test_creation tests/config_node_test.py::ConfigNodeTest::test_get tests/config_node_test.py::ConfigNodeTest::test_string tests/config_node_test.py::ConfigNodeTest::test_update
python_json_config/__version__.py python_json_config/config_node.py
python_json_config/__version__.py python_json_config/config_node.py