README.asciidoc
November 19, 2017 ยท View on GitHub
= Trava (Transit + Java)
Working with transit from Java is often a pain because of deeply nested datastructures that come back from transit. Trava attempts to make life a little easier by providing helper functions to access nested data.
There are things trava doesn't do yet. For example, assoc in trava won't work on java.util.List
but even in this state I have found it useful. Pull requests are welcome.
== Example
[source,clojure]
{:a {:b {:c 10}}}
[source,java]
//serialized clojure datastructure from above Map<Keyword,Object> nestedMap = ... ;
List
Assert.assertEquals(10,Navigator.getIn(nestedMap, path));
//Transform the map to make it like so:
// {:a {:b {:c 10 :d 1}}}
List