https://github.com/flarebyte/delimatrix_dart
Delimatrix Dart transforms strings to objects and back with a touch of magic
https://github.com/flarebyte/delimatrix_dart
Last synced: over 1 year ago
JSON representation
Delimatrix Dart transforms strings to objects and back with a touch of magic
- Host: GitHub
- URL: https://github.com/flarebyte/delimatrix_dart
- Owner: flarebyte
- License: mit
- Created: 2024-06-07T19:38:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-19T21:04:57.000Z (almost 2 years ago)
- Last Synced: 2025-01-04T10:23:31.739Z (over 1 year ago)
- Language: Dart
- Size: 260 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# delimatrix\_dart
[](https://github.com/flarebyte/delimatrix_dart/actions/workflows/main.yml)
[](https://pub.dev/packages/delimatrix_dart)
[](https://pub.dev/packages/delimatrix_dart/publisher)

> 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:
```dart
JsonTransformers.fromMap.chain(ToDxJsonTransformer(JsonEscapeConfigs.shavian)).transform(input);
```
Transform Shavian style JSON to a Map of string:
```dart
FromDxJsonTransformer(JsonEscapeConfigs.shavian).chain(JsonTransformers.toMap).transform(jsonishStringResult);
```
## Documentation and links
- [Code Maintenance :wrench:](MAINTENANCE.md)
- [Code Of Conduct](CODE_OF_CONDUCT.md)
- [Contributing :busts\_in\_silhouette: :construction:](CONTRIBUTING.md)
- [Architectural Decision Records :memo:](DECISIONS.md)
- [Contributors
:busts\_in\_silhouette:](https://github.com/flarebyte/delimatrix_dart/graphs/contributors)
- [Dependencies](https://github.com/flarebyte/delimatrix_dart/network/dependencies)
- [Glossary
:book:](https://github.com/flarebyte/overview/blob/main/GLOSSARY.md)
- [Software engineering principles
:gem:](https://github.com/flarebyte/overview/blob/main/PRINCIPLES.md)
- [Overview of Flarebyte.com ecosystem
:factory:](https://github.com/flarebyte/overview)
- [Dart dependencies](DEPENDENCIES.md)
- [Usage](USAGE.md)
- [Example](example/example.dart)
## Related
- [JSON and serialization in
Flutter](https://docs.flutter.dev/data-and-backend/serialization/json)