htools: simplify some JSON-related code
authorIustin Pop <iustin@google.com>
Sat, 2 Jul 2011 08:24:21 +0000 (10:24 +0200)
committerIustin Pop <iustin@google.com>
Wed, 13 Jul 2011 10:13:58 +0000 (12:13 +0200)
commit34c5a24a5aec428f4e0dfc6690cee83eb5368946
tree7d91ab33bdc9c9dcf659d00feba35204200eff48
parent7c14b50a38f00f49439cf3e42644dcd5f2703fc6
htools: simplify some JSON-related code

Instead of manually encoding the JSValue(s), we can use showJSON as
long as we use data types that can be auto-converted.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
htools/Ganeti/HTools/IAlloc.hs