jsonl_converter library
Conversion API between JSONL text and standard JSON text.
import 'package:jsonl/jsonl_converter.dart';
final jsonlText = jsonl.jsonToJsonl(jsonText);
final jsonText = jsonl.jsonlToJson(jsonlText);
Classes
- JsonlCodec
- Parses JSONL text into record maps and encodes maps or model objects.
Mixins
- JsonlConverterMixin
- Helpers for converting between standard JSON and JSONL text.
Constants
- jsonl → const JsonlCodec
- Default JSONL codec instance.
Exceptions / Errors
- JsonlFormatException
- Exception raised when a JSONL record cannot be parsed as a JSON object.