removed erroneous right brace } from print temperaturesJSON. Thanks m-mcgowan