NXP-16063: fix aggregate serialization in json
NXP-16063: testing aggregates JSON serialization