Check appropriate variable for contents

- s/data/json/ on line 22