code: def j_delete(self, *args):
          '''
          Delete the post, but return the JSON.
          '''
  
          uid = args[0]
  
          current_infor = MPost.get_by_uid(uid)
          tslug = MCategory.get_by_uid(current_infor.extinfo['def_cat_uid'])
          is_deleted = MPost.delete(uid)
          MCategory.update_count(current_infor.extinfo['def_cat_uid'])
          if is_deleted:
              output = {
                  'del_info': 1,
                  'cat_slug': tslug.slug,
                  'cat_id': tslug.uid,
                  'kind': current_infor.kind
  
              }
          else:
              output = {
                  'del_info': 0,
              }
          return json.dump(output, selff j_delete(self, *args):
          '''
          Delete the post, but return the JSON.
          '''
  
          uid = args[0]
  
          current_infor = MPost.get_by_uid(uid)
          tslug = MCategory.get_by_uid(current_infor.extinfo['def_cat_uid'])
          is_deleted = MPost.delete(uid)
          MCategory.update_count(current_infor.extinfo['def_cat_uid'])
          if is_deleted:
              output = {
                  'del_info': 1,
                  'cat_slug': tslug.slug,
                  'cat_id': tslug.uid,
                  'kind': current_infor.kind
  
              }
          else:
              output = {
                  'del_info': 0,
              }
          return json.dump(output, self)
docs: Delete the post, but return the JSON.