docs: def from_json(buffer):
          """Creates a sourcemap view from a JSON string."""
          buffer = to_bytes(buffer)
          return View._from_ptr(rustcall(
              _lib.lsm_view_from_json,
              buffer, len(buffer)))