Add on option to dumpJson for outputting json snippets

Change-Id: Ib621073e17d21e986b3534832460e3413e5018f6
Merge "Add on option to dumpJson for outputting json snippets"