handle JSON sql columns

This commit is contained in:
Hein
2025-11-20 12:04:19 +02:00
parent 3d5334002d
commit 07b09e2025
4 changed files with 176 additions and 8 deletions

View File

@@ -1647,10 +1647,13 @@ func (h *Handler) sendResponseWithOptions(w common.ResponseWriter, data interfac
data = h.normalizeResultArray(data)
}
response := common.Response{
Success: true,
Data: data,
Metadata: metadata,
response := data
if response == nil {
response = common.Response{
Success: true,
Data: data,
Metadata: metadata,
}
}
w.WriteHeader(http.StatusOK)
if err := w.WriteJSON(response); err != nil {