switched to storing BG values in JSON output as integers instead of strings