79565525

Date: 2025-04-10 00:18:28
Score: 1
Natty:
Report link

You can wrap your query in a select to convert to json and achieve this result.

Example

select TO_JSON_STRING(t, true) FROM (select 'apple' as fruit) t

Outputs

    
{
  "fruit": "apple"
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Raymond King