lib/json: introduces collection management in JsonStore.

Also improve the documentation.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>