added jsonWriter that generates json for the current map and map7.json that is a generated map