Delimatrix transforms strings to objects and back with a touch of magic
This versatile tool excels when handling results, typically in JSON format, containing content that can be represented as multiple types of objects. Depending on the context, the content might be a string, an array of strings, or a more complex object
Highlights:
- Uses transformers to convert between different types of objects.
- Unopinionated JSON serialization support.
- Provides a chainable API for transforming between different formats.
- Validates input before transformation.
A few examples:
Transform a Map of string to a Shavian style JSON:
JsonTransformers.fromMap.chain(ToDxJsonTransformer(JsonEscapeConfigs.shavian)).transform(input);
Transform Shavian style JSON to a Map of string:
FromDxJsonTransformer(JsonEscapeConfigs.shavian).chain(JsonTransformers.toMap).transform(jsonishStringResult);