stack_json_resolve: Refactor the inner loop into its own function.
stack_json_resolve: Refactor the inner loop into its own function.

Because in the next step...

thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap,VBChunguk/thcrap,VBChunguk/thcrap,thpatch/thcrap,VBChunguk/thcrap