{"name":"@mplx/javaser","description":"Decode Java Object Serialization streams (.ser files, ObjectOutputStream output) into a navigable object graph, without running any Java code","versions":{"0.1.0":{"version":"0.1.0","kind":"git","url":"https://github.com/mplx/deck-javaser.git","ref":"0.1.0","commit":"564e80c0df201124e77309267dcc8cd5d4cf65e5","checksum":"","yanked":true,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.28.0"},"capabilities":[],"keywords":["java","serialization","objectoutputstream","ser","deserialization"],"description":"Decode Java Object Serialization streams (.ser files, ObjectOutputStream output) into a navigable object graph, without running any Java code","publishedAt":"1795814557","repoId":1470635388,"repoOwnerId":1986588,"repoOwner":"mplx"}},"readme":"# @mplx/javaser\n\n[![test](https://github.com/mplx/deck-javaser/actions/workflows/test.yml/badge.svg)](https://github.com/mplx/deck-javaser/actions/workflows/test.yml)\n[![Documentation](https://img.shields.io/badge/docs-github%20pages-blue)](https://mplx.github.io/deck-javaser/)\n[![release](https://img.shields.io/github/v/release/mplx/deck-javaser)](https://github.com/mplx/deck-javaser/releases/latest)\n\nDecode Java™ Object Serialization streams - what `ObjectOutputStream` writes,\nfound in `.ser` files, application project files, caches and RMI payloads -\nin a [Jennifer](https://jennifer-lang.dev/) program, without a JVM and\nwithout running any Java code. Objects, arrays, strings, enums, proxies,\nback-references and custom `writeObject` / `writeExternal` data become a\ngraph of numbered nodes to navigate, or a readable tree.\n\n**[Documentation](https://mplx.github.io/deck-javaser/)**\n\n## Install\n\n```sh\njvc add @mplx/javaser\n```\n\nThis vendors the deck to `vendor/mplx/javaser/`. Without `jvc`, unpack the\n`src/` subtree of a release archive (`mplx-javaser-\u003cversion\u003e.tar.gz`) there.\n\n## Usage\n\n```jennifer\nimport \"@mplx/javaser/\" as javaser;\n\ndef s as javaser.Stream init javaser.decode(fs.readBytes(\"objects.ser\"));\nio.printf(\"%s\", javaser.dump($s));\n\ndef first as int init javaser.contents($s)[0];\nio.printf(\"%s\\n\", javaser.className($s, $first));\n```\n\n## Requirements\n\nJennifer 0.28.0 or newer. Pure computation: no network, files only as the\ncaller reads them.\n\n## Development\n\n```sh\ntools/check-all.sh                   # the full gate, as CI runs it\njennifer test src/javaser_test.j     # the test overlay\ntools/check-docs.sh                  # docs against the code\ntools/pack.sh dist                   # build the release archive\n```\n\nThe test streams are written by the JDK: `testdata/gen/Fixtures.java`\nwrites them, `testdata/gen/embed.j` embeds them in\n`src/topics/fixtures/streams_test.j`.\n\n## Trademarks\n\nJava™ is a trademark of Oracle and/or its affiliates; OpenJDK™ is a trademark\nof Oracle America, Inc. Other product and company names may be trademarks of\ntheir respective owners. They are used only to identify the products this deck\nworks with. This deck is an independent project, not affiliated with,\nsponsored or endorsed by Oracle.\n\n## Licence\n\nLGPL-3.0-only, see [LICENSE](LICENSE). Copyright (C) 2026 mplx \u0026lt;mplx@jennifer-lang.dev\u0026gt;.\n\n`tools/check-headers.sh` checks every source file's SPDX header against\n`deck.toml`.\n","movedTo":"@skiffyard/javaser"}