json: Fix the dot-notation test case

Add $(JSON_CFLAGS) to the CFLAGS of the dot-notation test, so that it
compiles.

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