i want to convert id
to string
in my sql query result.
i want to response json with string id ...
i tried convert(id, char)
and cast(id as char)
in select
but problem remains ...
example:
{
"status": 1,
"message": "Success",
"nexturl": "http://domain.dev/feed/298",
"data": [
{
"id": 123456789,
"userid": 12,
}
]
}
i want to get this result:
{
"status": 1,
"message": "Success",
"nexturl": "http://domain.dev/feed/298",
"data": [
{
"id": "123456789",
"userid": "12",
}
]
}