fixed typo in jsonEncode of maps