/** * Registers a custom serializer into the global JSON serializers (see JSONRPCBridge). * * @param serializer the serializer to register * @throws Exception if the registration fails */ public static void registerSerializer(Serializer serializer) throws Exception { JSONRPCBridge.getSerializer().registerSerializer(serializer); }