Eliminate JSON generation code dupes.
Merge remote-tracking branch 'origin/master'