handle json arrays
new serialization format
move json related classes to separate folder
wip
fix build & tests - still WIP