fix JSON snippet syntax (buggy).