added toJson to map