fix: bug in returning value of compare json tool function.