json: Fix the dot notation test too

Signed-off-by: Gergely Nagy <algernon@balabit.hu>