convert reading/measurement models toJSON