@Rudson_Rodrigues it would be good for you to spend some time reading over the SPIN documentation:
Quering/Filtering JSON: https://docs.camunda.org/manual/7.8/reference/spin/json/03-querying-json/
Spin Docs: https://docs.camunda.org/manual/7.8/reference/spin/json/