mmimica / async-jackson

Non-blocking jackson interface using actson lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ajackson

A library that provides non-blocking parsing behaviour for jackson parser.

async mapper example

Use Jackson's non-blocking parser for async non-blocking parsing. Use jackson mapper for superb mapping features.

Consumer<JsonNode> callback = (jsonRoot) -> {
    Model model = mapper.treeToValue(jsonRoot, Model.class);
};
AsyncJsonParser parser = new AsyncJsonParser(callback);

// ... in some other thread
parser.feed(bytes)

About

Non-blocking jackson interface using actson lib

License:Apache License 2.0


Languages

Language:Java 100.0%