Small bugfix in generate JSON

Signed-off-by: Deepak Jha <deepak.jha@turn.com>