lib/json: separate the pretty print from libjson0 v0.10

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>