Ensure doc examples use valid JSON

Change-Id: I2f615a5a135e4de60159d2b0f0c3fad351efd287