Add dumping the module graph in JSON format. am: 6f6828235f

Original change: https://android-review.googlesource.com/c/platform/build/blueprint/+/1662000

Change-Id: Iccc0c71eb77b34eec8f0bf1aa3a2cffd3947f823