Liquibase already supports JSON along with SQL, XML, and YAML. Here's a doc to help you get started with JSON: https://docs.liquibase.com/start/get-started/liquibase-json.html
If you're specifically looking for rollbacks, here's an example using JSON: https://docs.liquibase.com/commands/rollback/rollback.html#json_example_custom_generic
You can definitely create your own solution, but I would recommend against creating bespoke tools that already have established open-source alternatives with active communities.