measurement model and JSON conversions