Skip to content
forked from HashLoad/jhonson

Middleware for parse JSON in HORSE

License

Notifications You must be signed in to change notification settings

bragaped/jhonson

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jhonson

Middleware for parse JSON in HORSE

Sample Horse Server

uses Horse, Horse.Jhonson, System.JSON;

begin
  THorse.Use( Jhonson() );

  THorse.Post('/ping',
    procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
    var
      LBody: TJSONObject;
    begin
      LBody := Req.Body<TJSONObject>;
      Res.Send<TJSONObject>(LBody);
    end);

  THorse.Listen(9000);
end;

About

Middleware for parse JSON in HORSE

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Pascal 100.0%