2026.05.28¶
Add Ruby, TypeScript, Haskell, Perl, PHP, Go, Zig, C#, Scala, Swift, Kotlin, Rust, D, TOML, Elm, OCaml, YAML, Julia, R, and Groovy JSON round-trip checks to CI using the shared round-trip fixture.
Add
Rust(json_type=Rust.json_types.SERDE_JSON_VALUE)to render values throughserde_json::json!instead of Rust’s narrow collection types.Add
Perl(bool_format=...)so booleans can round-trip through JSON and YAML libraries. The defaultPerl.BoolFormats.INTEGERkeeps the historic bare1/0output;JSON_PP_REFrenders\1/\0scalar references (the conventional form used byJSON::PP,JSON::XS,Cpanel::JSON::XS, andMojo::JSON);JSON_PP_SINGLETONrenders theJSON::PP::true/JSON::PP::falseblessed singletons with ause JSON::PP;preamble.Add
Cpp(json_type=Cpp.json_types.NLOHMANN_JSON)to render values throughnlohmann::json::parseinstead of C++’s narrowstd::vector/std::map/std::unordered_mapcollection types.Add
Java(json_type=Java.json_types.JACKSON_JSON_NODE)to render values through Jackson’sObjectMapper.readTreeso the binding has the static typecom.fasterxml.jackson.databind.JsonNodeinstead of Java’s narrowList/Maptypes.Add
CSharp(json_type=CSharp.json_types.SYSTEM_TEXT_JSON_NODE)to render values throughSystem.Text.Json.Nodes.JsonNodeinstead of C#’s narrow collection types.Add
Kotlin(json_type=Kotlin.json_types.KOTLINX_JSON_ELEMENT)to render values throughJson.parseToJsonElementso the binding has the static typekotlinx.serialization.json.JsonElementinstead of Kotlin’s narrowList/Maptypes.Add
Scala(json_type=Scala.json_types.CIRCE)to render values through CirceJson.obj/Json.arr/Json.fromXxxinstead of Scala’s narrow collection types.Add
Haskell(json_type=Haskell.json_types.AESON_VALUE)to render values through theaesonQQquasi-quote bracket fromData.Aeson.QQso the binding has the static typeData.Aeson.Valueinstead of Haskell’s narrow customValalgebraic type.Add
Zig(json_type=Zig.json_types.STD_JSON_VALUE)to render values throughstd.json.parseFromSliceso the binding has the static typestd.json.Valueinstead of Zig’s narrowZValtagged union.Add
Nim(json_type=Nim.json_types.JSON_NODE)to render values through the standard-libraryjson.JsonNodeand the%*macro instead of Nim’s narrow collection types.Add
Crystal(json_type=Crystal.json_types.JSON_ANY)to render values throughJSON.parse(%(...))into Crystal’s standard-libraryJSON::Anyinstead of nativeArrayandHashcollections.Add
D(json_type=None)to render D data through narrow native collections (raw scalars,T[]arrays,V[K]associative arrays) instead of the defaultstd.json.JSONValuewrapper, giving D users the same two-mode choice the otherjson_type-supporting languages have. D’s polarity is reversed:json_type=D.json_types.STD_JSON_VALUE(the default) matches the other languages’ opt-in JSON value rendering, whilejson_type=Nonematches their typed-collection defaults.Add an opt-in
Perl.string_formats.DOUBLE_UTF8variant that emits non-ASCII characters literally in double-quoted strings and contributesuse utf8;to the file preamble whenever the literalized value contains a non-ASCII string.Add an Ada JSON round-trip check to CI using the shared round-trip fixture.
Add a Clojure JSON round-trip check to CI using the shared round-trip fixture.
Add a Common Lisp JSON round-trip check to CI using the shared round-trip fixture.
Add a Crystal JSON round-trip check to CI using the shared round-trip fixture.
Add a Dart JSON round-trip check to CI using the shared round-trip fixture.
Add a Dhall JSON round-trip check to CI using a scalar-only subset of the shared round-trip fixture.
Add an Elixir JSON round-trip check to CI using the shared round-trip fixture.
Add an Erlang JSON round-trip check to CI using the shared round-trip fixture.
Add a Forth JSON round-trip check to CI using the shared round-trip fixture.
Add an F# JSON round-trip check to CI using the shared round-trip fixture.
Add a Gleam JSON round-trip check to CI using the shared round-trip fixture.
Add an HCL JSON round-trip check to CI using the shared round-trip fixture.
Add a Lua JSON round-trip check to CI using the shared round-trip fixture.
Add a Nim JSON round-trip check to CI using the shared round-trip fixture.
Add an Objective-C JSON round-trip check to CI using the shared round-trip fixture.
Add an Odin JSON round-trip check to CI using the shared round-trip fixture.
Add a Racket JSON round-trip check to CI using the shared round-trip fixture.
Add a Raku JSON round-trip check to CI using the shared round-trip fixture.
Add a Roc JSON round-trip check to CI using the shared round-trip fixture.
Add a Standard ML JSON round-trip check to CI using the shared round-trip fixture.
Add a Tcl JSON round-trip check to CI using the shared round-trip fixture.
Add a V JSON round-trip check to CI using the shared round-trip fixture.
Add a Visual Basic JSON round-trip check to CI using the shared round-trip fixture.
Add a Wren JSON round-trip check to CI using the shared round-trip fixture.
Replace the hand-rolled JSON encoder in the Java round-trip CI check with Jackson’s
ObjectMapper.The Kotlin JSON round-trip CI check now serializes via Jackson’s
ObjectMapperinstead of a hand-rolledtoJsonElementwalker over heterogeneousAny?plus primitive-array types.Raise
UnrepresentableEmptyDictErrorat literalize time when an empty mapping appears anywhere in the input for the Lua, PHP, and R language specifications. These languages have a single runtime collection type that cannot distinguish an empty mapping from an empty sequence, so emitting an empty-table literal would silently lose the mapping/sequence distinction on round-trip through any JSON encoder. The new exception is exposed fromliteralizer.exceptions.Raise
UnrepresentableIntegerErrorat literalize time for integers outside the target language’s representable range on the Go, TypeScript, Rust, D, and C++ language specifications, replacing silent emission of literals the target compiler would reject or silently truncate. Go and D now emit aUL/uint64(...)literal for positives up toulong.max/math.MaxUint64and raise above that; C++ retains its existingULLfallback and now raises aboveULLONG_MAX; Rust raises above thei128range; TypeScript raises aboveNumber.MAX_SAFE_INTEGER(2**53 - 1).Always emit a dotted mantissa in float scientific-notation literals (
1.0e+16rather than1e+16) so the output parses as a float in Ada, Cobol, Elixir, Erlang, Gleam, Nix, and YAML. Gleam additionally strips the+from positive exponents to satisfy its parser, which letsGleam’s JSON round-trip handle the full IEEE 754doublerange.Internal: rewrite the Kotlin and Zig JSON round-trip scripts on top of the
KOTLINX_JSON_ELEMENTandSTD_JSON_VALUEjson_typestrategies, dropping the bespokeAny?-to-JsonElementandZVal-to-std.json.Valuewalkers.std.json.Value.number_stringpreserves the 26-digitbigintegerfield end-to-end on Zig, so that exclusion is dropped there;kotlinx.serialization’sparseToJsonElementstill collapses it to aDouble, so the Kotlin exclusion is retained.Add
Erlang(json_type=Erlang.json_types.OTP_JSON)to render strings, ISO dates, datetimes, times, and base64-encoded bytes as UTF-8 binary literals (<<"..."/utf8>>), null as the bare atomnull, and sets as JSON arrays, so the rendered value feeds straight into Erlang’s built-injson:encode/1(available sinceOTP_27) without a normalization pass.Add
OCaml(json_type=OCaml.json_types.YOJSON_SAFE_T)to render values directly asYojson.Safe.tpolymorphic-variant literals (Bool,Int,Float,String,Null,List,Assoc,Intlit) so the binding has the static typeYojson.Safe.tinstead of OCaml’s generatedval_talgebraic type; arbitrary-precision integers route through theIntlitescape hatch.Document the F#
Valdiscriminated union’s JSON serialization limitations: theFMaptuple-list shape (chosen to preserve insertion order) andFSharp.SystemTextJson’sUntaggedencoding both preventSystem.Text.Json.JsonSerializer.Serializefrom producing valid JSON without a custom converter. TheFSharplanguage module now describes both pitfalls and points users at thewriteValhelper inscripts/run_fsharp_roundtrip.pyas a starting template.Add
Elm(json_type=Elm.json_types.JSON_ENCODE_VALUE)to render values as idiomaticelm/jsonJson.Encode.*calls producing aJson.Encode.Valuedirectly, replacing the per-fixtureValADT.Add
FSharp(json_type=FSharp.json_types.SYSTEM_TEXT_JSON_NODE)to render values throughSystem.Text.Json.Nodes.JsonNodeinstead of F#’s generated taggedValdiscriminated union.Add
Gleam(json_type=Gleam.json_types.GLEAM_JSON_JSON)to render values directly asgleam_jsonbuilder calls (json.object,json.preprocessed_array,json.int,json.string, …) so the binding has the static typegleam/json.Jsoninstead of Gleam’s generatedGValtagged ADT.Add
PureScript(json_type=PureScript.json_types.ARGONAUT_JSON)to render values through afromRight jsonNull (jsonParser "...")expression so the binding has the static typeData.Argonaut.Core.Jsoninstead of PureScript’s narrow customValalgebraic type.Raise
UnrepresentableEmptyDictErrorat literalize time when an empty mapping appears anywhere in the input for the Ada language specification. The Ada literalizer’s unifiedA_Valaggregate cannot distinguish an emptyAMap'[]from an emptyAList'[]at run time, so emitting an empty-mapping literal would silently lose the mapping/sequence distinction on round-trip. Ada now joins Lua, PHP, and R in raising rather than emitting an ambiguous literal.