Using JsonTransformer instead of manual JSON generation