code: public static void write (SimpleMisoSceneModel model, Json.Writer out) {
          out.object(); // outer
          out.value("width", model.width);
          out.value("height", model.height);
          out.value("viewwidth", model.vwidth);
          out.value("viewheight", model.vheight);
  
          out.array("base");
          for (int tileId : model.baseTileIds) out.value(tileId);
          out.end();
  
          out.array("objects");
          for (int ii = 0; ii < model.objectTileIds.length; ii++) {
              out.object();
              out.value("tileId", model.objectTileIds[ii]);
              out.value("x", model.objectXs[ii]);
              out.value("y", model.objectYs[ii]);
              out.end();
          }
          for (ObjectInfo info : model.objectInfo) {
              out.object();
              out.value("tileId", info.tileId);
              out.value("x", info.x);
              out.value("y", info.y);
              if (info.action != null) out.value("action", info.action);
              if (info.priority != 0) out.value("priority", info.priority);
              if (info.sx != 0 || info.sy != 0) {
                  out.value("sx", info.sx);
                  out.value("sy", info.sy);
                  out.value("sorient", info.sorient);
              }
              if (info.zations != 0) out.value("zations", info.zations);
          }
          out.end(); // objects
          out.end(); // outer
      }
docs: Writes {@code model} to {@code out}.