Fork me on GitHub
#reitit
<
2019-10-12
>
valerauko11:10:34

@ikitommi in cheshire there's strict and not strict decode. is there any distinction like that in jsonista?

ikitommi11:10:02

@vale no, there is not a lazy parse available. But people have asked for it, would be easy to add.

valerauko11:10:36

is there an issue for it?

valerauko11:10:48

i'd be happy to do it if you can point me in the right direction

ikitommi11:10:26

don't think there is. It would require a new top-level fn, which would inspect if the top-level form is an array (using jackson-core/streamong stuff), if it is, just return a lazy seq of elements parsed eagerly with the object-mapper.

ikitommi11:10:08

might be easy, might not, but PR welcome.

ikitommi11:10:39

Also, worth checking if there is a Jackson-native way to do that, via some ObjectMapper option.

valerauko12:10:06

i'll look at it

👍 4