Pushing the JSON encoder to a member variable is not related to this pull request, but a result of the "boyscout principle":)