NXP-16063: fix aggregate serialization in json