lib: intro of json serialization module

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