Fork me on GitHub
#beginners
<
2015-10-08
>
nicholasf01:10:30

I have quite a large arraymap that I want to HTTP post downstream

nicholasf01:10:44

what’s the best way to convert it into json?

meikemertsch05:10:34

@nicholasf: I'm using Cheshire.

nicholasf05:10:48

thanks, I ended up using that too

meikemertsch05:10:07

Btw are you familiar with http://clojars.org? That's how I found many libs...

nicholasf05:10:42

meikemertsch: vaguely, I will work from there next time

meikemertsch05:10:11

😊👍:skin-tone-2: I hope it'll help you

ian21:10:13

@nicholasf: is there any reason you have "quite a large" arraymap? typically any map of over 10 kv-pairs will be much more efficient being a HashMap instead.

nicholasf21:10:32

ian: yes, I’m parsing large xml files

nicholasf21:10:36

up to 2G so far

nicholasf21:10:46

I have it working now

ian21:10:20

a 2gb arraymap? that would surely be quite more efficient as a HashMap instead.

nicholasf21:10:51

maybe. I can’t go into it now, but thanks

alexmiller21:10:21

an arraymap would be much more memory efficient (but much worse lookup performance)