Json options improvements

... options()

Signed-off-by: Julien Viet <julien@julienviet.com>