Seems like #to_json should probably return valid json?