Repeats (with alternate endings, advanced)

See also: This same example in MusicXML
{
   "mnx": {
      "version": 1
   },
   "global": {
      "measures": [
         {
            "repeatStart": {},
            "time": {
               "count": 3,
               "unit": 4
            }
         },
         {
            "ending": {
               "duration": 2,
               "numbers": [
                  1,
                  2
               ]
            }
         },
         {
            "repeatEnd": {}
         },
         {
            "ending": {
               "duration": 2,
               "numbers": [
                  3
               ],
               "open": true
            }
         },
         {},
         {}
      ]
   },
   "parts": [
      {
         "measures": [
            {
               "clefs": [
                  {
                     "clef": {
                        "sign": "G",
                        "staffPosition": -2
                     }
                  }
               ],
               "sequences": [
                  {
                     "content": [
                        {
                           "duration": {
                              "base": "half",
                              "dots": 1
                           },
                           "notes": [
                              {
                                 "pitch": {
                                    "octave": 5,
                                    "step": "C"
                                 }
                              }
                           ]
                        }
                     ]
                  }
               ]
            },
            {
               "sequences": [
                  {
                     "content": [
                        {
                           "duration": {
                              "base": "half",
                              "dots": 1
                           },
                           "notes": [
                              {
                                 "pitch": {
                                    "octave": 5,
                                    "step": "E"
                                 }
                              }
                           ]
                        }
                     ]
                  }
               ]
            },
            {
               "sequences": [
                  {
                     "content": [
                        {
                           "duration": {
                              "base": "half"
                           },
                           "notes": [
                              {
                                 "pitch": {
                                    "octave": 5,
                                    "step": "E"
                                 }
                              }
                           ]
                        },
                        {
                           "duration": {
                              "base": "quarter"
                           },
                           "notes": [
                              {
                                 "pitch": {
                                    "octave": 5,
                                    "step": "D"
                                 }
                              }
                           ]
                        }
                     ]
                  }
               ]
            },
            {
               "sequences": [
                  {
                     "content": [
                        {
                           "duration": {
                              "base": "half",
                              "dots": 1
                           },
                           "notes": [
                              {
                                 "pitch": {
                                    "octave": 5,
                                    "step": "G"
                                 }
                              }
                           ]
                        }
                     ]
                  }
               ]
            },
            {
               "sequences": [
                  {
                     "content": [
                        {
                           "duration": {
                              "base": "half"
                           },
                           "notes": [
                              {
                                 "pitch": {
                                    "octave": 5,
                                    "step": "G"
                                 }
                              }
                           ]
                        },
                        {
                           "duration": {
                              "base": "quarter"
                           },
                           "notes": [
                              {
                                 "pitch": {
                                    "octave": 5,
                                    "step": "F"
                                 }
                              }
                           ]
                        }
                     ]
                  }
               ]
            },
            {
               "sequences": [
                  {
                     "content": [
                        {
                           "duration": {
                              "base": "half",
                              "dots": 1
                           },
                           "notes": [
                              {
                                 "pitch": {
                                    "octave": 5,
                                    "step": "E"
                                 }
                              }
                           ]
                        }
                     ]
                  }
               ]
            }
         ]
      }
   ]
}