fix json parser

Signed-off-by: Fabien Crassat <fabien@crassat.com>