lib/json: fix const char* errors

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/json: removes spaces in test for retro-compatibility

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