[PLAT-2853] Correctly handle bean types that have a string converter when creating JSON