Delphi serverside framework for managing sessions and respond with JSON to ajax requests?

后端 未结 6 1661
梦谈多话
梦谈多话 2020-12-28 09:33

Without reinventing the wheel, what I can use to manage user sessions in a web application and being able to respond with JSON to ajax requests?

Is there some framew

6条回答
  •  情深已故
    2020-12-28 10:00

    I would recommend Super Object Toolkit.

    http://www.progdigy.com

    Example Code:

    procedure Share(ARequestInfo: TIdHTTPRequestInfo)
    var
    ReturnObject: ISuperObject;
    begin
      ReturnObject := SO();
      ReturnObject.B['success'] := false;
    
      AResponseInfo.ContentType := 'application/json';
      AResponseInfo.ContentText := ReturnObject.AsJSon();
    end;
    

提交回复
热议问题