Here’s some information about a Xojo Web 2.0 app that I’ve developed for analyzing HTTP requests. It includes a link to an instance of the app (which is running on a Xojo Cloud server), and a link that you can use to download the project file.
I hope you find it to be helpful.
https://timdietrich.me/blog/xojo-web-http-request-analyzer/
6 Likes
Got a tip for you! JSONItem
can format string output, just set JSONItem.Compact = false
(That will remove the dependency on the deprecated Text
datatype )
3 Likes
AlbertoD
(AlbertoD)
September 9, 2023, 8:35pm
3
Thank you, Tim Dietrich.
As Tim Parnell said, you can remove JSONFormatter and change this lines:
Var Formatter As New JSONFormatter( ResponseJSON.ToString.ToText )
Response.Status = 200
AddServerHeader( Response )
Response.Header( "Content-Type" ) = "application/json"
Response.Write( Formatter.Format )
to
//Var Formatter As New JSONFormatter( ResponseJSON.ToString.ToText )
Response.Status = 200
AddServerHeader( Response )
Response.Header( "Content-Type" ) = "application/json"
//Response.Write( Formatter.Format )
ResponseJSON.compact = False
Response.Write( ResponseJSON.ToString)
It is faster not to use the JSONFormatter and looks better too:
JSONFormatter
JSONItem.Compact = False
Thanks @Tim_Parnell and @AlbertoD for the tip about JSONItem’s Compact property.
I didn’t know that existed.
1 Like