code: def deprecated(context):
      
      if 'fetchJsonPath' in context:
          context.assert_key_has_value(key='fetchJsonPath', caller=__name__)
  
          context['fetchJson'] = {'path': context['fetchJsonPath']}
  
          if 'fetchJsonKey' in context:
              context['fetchJson']['key'] = context.get('fetchJsonKey', None)
  
          logger.warning("fetchJsonPath and fetchJsonKey "
                         "are deprecated. They will stop working upon the next "
                         "major release. Use the new context key fetchJson "
                         "instead. It's a lot better, promise! For the moment "
                         "pypyr is creating the new fetchJson key for you "
                         "under the hood.")
docs: Create new style in params from deprecated.