Changed the parsing loop slightly.
Changed the parsing loop slightly.

This prevents us from scanning the whole content when we're not
looking for anything, and it's less code to boot.

jmptrader/go-jsonpointer,dustin/go-jsonpointer,chadkouse/go-jsonpointer