Open this example in the interactive library
Source code
SELECT json_insert('["A","B"]','$[#]','C') AS stops;
Sample output
[
{
"stops": "[\"A\",\"B\",\"C\"]"
}
]
Append a delivery stop to an itinerary using SQLite JSON functions.
Open this example in the interactive library
SELECT json_insert('["A","B"]','$[#]','C') AS stops;
[
{
"stops": "[\"A\",\"B\",\"C\"]"
}
]