This is a big kludge because google earth sends malformed JSON. This was the best I could think of to avoid using `eval()`.