data to json in show erb file