Added an example implementation
Removed `autoSerialize`-option in favor of `jsonEncode`