Need to figure out how to pass name pairs into json.