JSON generation tested
Map implemented, not tested