Have you tried running your query directly in the database engine itself to see that it actually works?

// Json