docs: def dumps(dct, as_dict=False, **kwargs):
      """ Dump the dict to json in DynamoDB Format
          You can use any other simplejson or json options
          :param dct - the dict to dump
          :param as_dict - returns the result as python dict (useful for DynamoDB boto3 library) or as json sting
          :returns: DynamoDB json format.
          """
  
      result_ = TypeSerializer().serialize(json.loads(json.dumps(dct, default=json_serial),
                                                      use_decimal=True))
      if as_dict:
          return next(six.iteritems(result_))[1]
      else:
          return json.dumps(next(six.iteritems(result_))[1], **kwargs)