Added returns to json functions. Whoops!