Decode Java™ Object Serialization streams - what ObjectOutputStream writes,
found in .ser files, application project files, caches and RMI payloads -
in a Jennifer program, without a JVM and
without running any Java code. Objects, arrays, strings, enums, proxies,
back-references and custom writeObject / writeExternal data become a
graph of numbered nodes to navigate, or a readable tree.
This deck is part of Skiffyard, small community decks for Jennifer.
jvc add @skiffyard/javaserThis vendors the deck to vendor/skiffyard/javaser/. Without jvc, unpack the
src/ subtree of a release archive (skiffyard-javaser-<version>.tar.gz) there.
import "@skiffyard/javaser/" as javaser;
def s as javaser.Stream init javaser.decode(fs.readBytes("objects.ser"));
io.printf("%s", javaser.dump($s));
def first as int init javaser.contents($s)[0];
io.printf("%s\n", javaser.className($s, $first));
Jennifer 0.28.0 or newer. Pure computation: no network, files only as the caller reads them.
tools/check-all.sh # the full gate, as CI runs it
jennifer test src/javaser_test.j # the test overlay
tools/check-docs.sh # docs against the code
tools/pack.sh dist # build the release archiveThe test streams are written by the JDK: testdata/gen/Fixtures.java
writes them, testdata/gen/embed.j embeds them in
src/topics/fixtures/streams_test.j.
Java™ is a trademark of Oracle and/or its affiliates; OpenJDK™ is a trademark of Oracle America, Inc. Other product and company names may be trademarks of their respective owners. They are used only to identify the products this deck works with. This deck is an independent project, not affiliated with, sponsored or endorsed by Oracle.
LGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <mplx@jennifer-lang.dev>.
tools/check-headers.sh checks every source file's SPDX header against
deck.toml.