anchor.diff:      error({invalid_term_structure, Term, Type}).
   
   %%--------------------------------------------------------------------
  +%% @private
   %% @doc
   %% Decodes an erlang term from erlang json format with given structure.
   %% @end
  
positive.code: decode(EJson) ->
      EJson.
  
  %%--------------------------------------------------------------------
  %% @doc
  %% Encodes an erlang term to erlang json format with given structure.
  %% @end
  
negative.code: -include("modules/datastore/datastore_models.hrl").
  
  %% API
  -export([encode/1, decode/1]).
  
  -type value() :: datastore_doc:value().
  -type doc() :: datastore_doc:doc(value()).
  