In my table, i've got a column where I save an array of jsons as a string, like this:
[
{
"id":0,
"stops":[
{
"Id":0,
"field1":"data1",
"field2":"data2"
}
],
"time":"01:00:00"
},
{
"id":2,
"stops":[
{
"Id":0,
"field1":"data1",
"field2":"data2"
}
],
"time":"01:00:00"
},
]
I want to count the number of jsons in this array. The database is in PostgreSQL 9.6.1.
json_array_length()?