Add missing 'encoding/json' import

I realize this has only been a problem for the last 37 minutes and you're going to notice it imminently, but I wanted to use github's online edit->fork->pull request flow anyways :)