I have a json_array [1, 2, 3, 3, 3], and I want to find out where how many the element '3' is.
For example,
json_search('[1, 2, 3, 3, 3]', 'all', 3) return null;
json_search('["1", "2", "3", "3", "3"]', 'all', '3') return ["$[2]", "$[3]", "$[4]"];
Therefore,
json_length(json_search('[1, 2, 3, 3, 3]', 'all', 3)) return null;
I want to 3
I’ve been looking all day, but I don’t know the solution and ask for help.