lib/json: detect libjson0 version for pretty printing support

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