NXP-15461: try to fix json es aggregates writer