Code to take JSON observations, and get ready to persist