Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 2.4 KB

README.md

File metadata and controls

64 lines (48 loc) · 2.4 KB

delimatrix_dart

Dart CI pub package package publisher

Experimental

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

Hero image for delimatrix_dart

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);

Documentation and links

Related