diff --git a/docs/intro/loading-and-saving-data.rst b/docs/intro/loading-and-saving-data.rst index 952bb86..514e33a 100644 --- a/docs/intro/loading-and-saving-data.rst +++ b/docs/intro/loading-and-saving-data.rst @@ -2,13 +2,13 @@ Loading and saving data ####################### -Saving and loaded of resources is handled by codecs for each format. +Saving and loading of resources is handled by codecs for each format. JSON data ========= JSON data is loaded and saved using the :py:mod:`odin.codecs.json_codec` module. This module exposes an API that is very -similar to Pythons built in :py:mod:`json` module. +similar to Python's built in :py:mod:`json` module. Using the Book and Author resources presented in the :doc:`creating-resources` section:: diff --git a/src/odin/codecs/json_codec.py b/src/odin/codecs/json_codec.py index 4816c99..471d643 100644 --- a/src/odin/codecs/json_codec.py +++ b/src/odin/codecs/json_codec.py @@ -52,7 +52,7 @@ def default(self, o): def load(fp, resource=None, full_clean=True, default_to_not_supplied=False): """ - Load a from a JSON encoded file. + Load from a JSON encoded file. See :py:meth:`loads` for more details of the loading operation.