Edit: You mean the code inside Sub Process_Globals as changed in Version: 4.30You can find the following code on top of WebApiUtils.bas file.
Public Const RESPONSE_ELEMENT_MESSAGE As String = "m"
Public Const RESPONSE_ELEMENT_CODE As String = "a"
Public Const RESPONSE_ELEMENT_STATUS As String = "s"
Public Const RESPONSE_ELEMENT_TYPE As String = "t"
Public Const RESPONSE_ELEMENT_ERROR As String = "e"
Public Const RESPONSE_ELEMENT_RESULT As String = "r"
Do you mean to read theWhere can i find a copy to make the suggested edits to make the json easier to read?
Do you mean you want a simpler format with less keys?Where can i find a copy to make the suggested edits to make the json easier to read?
{
"s": "ok",
"a": 200,
"m": "Success",
"e": null,
"r": {
"id": 3,
"category_id": 2,
"product_code": "T002",
"product_name": "Optimus Prime",
"product_price": 1000,
"product_image": null,
"created_date": "2025-10-27 16:51:43",
"modified_date": null,
"deleted_date": null
}
}
{
"id": 3,
"category_id": 2,
"product_code": "T002",
"product_name": "Optimus Prime",
"product_price": 1000,
"product_image": null,
"created_date": "2025-10-27 16:51:43",
"modified_date": null,
"deleted_date": null
}
' *** Api Settings ***
Api = App.api
Api.VerboseMode = False
Private Sub Configurable
#If DEBUG
conf.EnableHelp = True
#End If
#If RELEASE
conf.EnableSSL = True
#End If
conf.EnableCORS = True
'conf.VerboseMode = True
conf.StaticFilesBrowsable = False
End Sub
You don't need to modify the library.how do i update the WebApiUtils.bas
Public Sub Initialize
HRM.Initialize
HRM.VerboseMode = Main.conf.VerboseMode
HRM.ResponseKeys = Array("m", "a", "r")
HRM.ResponseKeysAlias = Array("message", "code", "data")
End Sub
Public Sub Initialize
App = Main.App
HRM.Initialize
Main.SetApiMessage(HRM)
DB.Initialize(Main.DBType, Null)
HRM.ResponseKeys = Array("m", "a", "r")
HRM.ResponseKeysAlias = Array("message", "code", "data")
End Sub