sdkJsonEncoder property

bool sdkJsonEncoder
final

Dox encodes JSON with JsonUtf8Encoder of the Dart SDK, as it did before it had its own encoder. A model and a DTO then make a Map again, and a JSON response has its own copy of the bytes.

The JSON is the same with and without this flag. It is slower. Turn it on only if you think the Dox encoder gives a wrong response, and tell us. A class that only has writeJson() also needs a toJson() with this flag. CoreFlags.all() does not turn this flag on.

Implementation

final bool sdkJsonEncoder;