base/json: Add more helper functions for getting data out of json blobs.