How can I convert collection.find to a json query in Java

Yes, but the query is the value of fullQuery which start at the first [ and ends at the last ]. So it is