mirror of
				https://github.com/amithkoujalgi/ollama4j.git
				synced 2025-11-04 10:30:41 +01:00 
			
		
		
		
	Fixes BooleanToJsonFormatFlagSerializer
This commit is contained in:
		@@ -10,9 +10,12 @@ public class BooleanToJsonFormatFlagSerializer extends JsonSerializer<Boolean>{
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public void serialize(Boolean value, JsonGenerator gen, SerializerProvider serializers) throws IOException {
 | 
			
		||||
        if(value){
 | 
			
		||||
            gen.writeString("json");
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public boolean isEmpty(Boolean value){
 | 
			
		||||
        return !value;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user