I just remembered an important thing from back when I was playing with that python tool for json check.
It reordered the json output in alphabetical order. That's why I stopped using it.
There may be some option to avoid this behaviour. If so, we should use that option.
Either that or we'll have to save the real output and send a copy to the python tool for verification and if all is ok, echo the real output.