.. _LokJSONAccessStrategy: ===================== LokJSONAccessStrategy ===================== **Inherits:** The :ref:`LokJSONAccessStrategy ` class is responsible for implementing ``JSON`` data accessing. Description =========== This class inherits from the :ref:`LokAccessStrategy ` in order to implement its :ref:`_save_partition <_save_partition>` and :ref:`_load_partition <_load_partition>` methods and, with that, provide saving and loading functionalities for ``JSON`` data. **Version**: 1.0.0 **Author**: github.com/nadjiel _ Method Index ============ .. list-table:: :header-rows: 1 * - Return type - Signature * - :ref:`Dictionary ` - :ref:`_save_partition `\(:ref:`String ` partition_path, :ref:`Dictionary ` data, :ref:`bool ` replace = ``false``\)* - :ref:`Dictionary ` - :ref:`_load_partition `\(:ref:`String ` partition_path\) Method Descriptions =================== .. _LokJSONAccessStrategy__save_partition: :ref:`Dictionary ` _save_partition\(:ref:`String ` partition_path, :ref:`Dictionary ` data, :ref:`bool ` replace = ``false``\) -------------------------------------------------------------------------------------------------------------------------------------------------------------------- The :ref:`_save_partition <_save_partition>` method overrides its super counterpart :ref:`LokAccessStrategy._save_partition ` in order to provide ``data`` saving in the ``JSON`` format. When finished, this method returns a :ref:`Dictionary ` with the data it saved. To read more about the parameters of this method, see :ref:`LokAccessStrategy._save_partition `. .. _LokJSONAccessStrategy__load_partition: :ref:`Dictionary ` _load_partition\(:ref:`String ` partition_path\) --------------------------------------------------------------------------------------- The :ref:`_load_partition <_load_partition>` method overrides its super counterpart :ref:`LokAccessStrategy._load_partition ` in order to provide data loading in the ``JSON`` format. When finished, this method returns a :ref:`Dictionary ` with the data it loaded. To read more about the parameters of this method and the format of its return, see :ref:`LokAccessStrategy._load_partition `.