Use Avaje Jsonb for Javalin JSON (#2512)

This commit is contained in:
Alan Everett
2026-06-09 20:20:21 -04:00
committed by GitHub
parent 7b30c9306e
commit c04c8d76ed
3 changed files with 4 additions and 1 deletions

View File

@@ -17,6 +17,7 @@
package org.photonvision.server;
import io.avaje.jsonb.javalin.JavalinJsonb;
import io.javalin.Javalin;
import io.javalin.plugin.bundled.CorsPlugin;
import java.net.InetSocketAddress;
@@ -103,6 +104,7 @@ public class Server {
return "Got WebSockets binary message from host: " + host;
}));
});
javalinConfig.jsonMapper(new JavalinJsonb());
});
/* Web Socket Events for Data Exchange */