public static Map < String , Object > toMapWithDefault ( String value , Map < String , Object > defaultValue ) { Map < String , Object > result = toNullableMap ( value ) ; return result != null ? result : defaultValue ; }
Converts JSON string into map object or returns default value when conversion is not possible .