Author’s note: Since publishing this, I’ve learned that the array representation was first proposed in a joint paper by George James and Rob Tweed, A Universal NoSQL Engine, Using a Tried and Tested Technology. Given the ubiquity of MUMPS in Health IT, and the increasing use of JSON as a data format, there is a need for a simple way of converting between the two formats. But before presenting such a mapping, let us briefly review the two formats. In MUMPS, arrays are key/value pairs in which keys may be organized hierarchically. Not only are ROOT(1)=”abc” ROOT(2)=”def” and ROOT(“abc”)=”def” legal arrays, but so is ROOT(“abc”)=”d” ROOT(“abc”,0,12)=”ef” ROOT(4,”def”)=1.1 There are a few things to notice here. For one thing, numbers and arrays may be freely…