code: def mpstatus_to_json(status):
      '''Translate MPStatus in json string'''
      msg_keys = list(status.msgs.keys())
      data = '{'
      for key in msg_keys[:-1]:
          data += mavlink_to_json(status.msgs[key]) + ','
      data += mavlink_to_json(status.msgs[msg_keys[-1]])
      data += '}'
      return datf mpstatus_to_json(status):
      '''Translate MPStatus in json string'''
      msg_keys = list(status.msgs.keys())
      data = '{'
      for key in msg_keys[:-1]:
          data += mavlink_to_json(status.msgs[key]) + ','
      data += mavlink_to_json(status.msgs[msg_keys[-1]])
      data += '}'
      return data
docs: Translate MPStatus in json string