fix output JSON snippet syntax