fix bug 982174: Ensure build_json_data uses rendered HTML when available
Merge pull request #2134 from lmorchard/982174-json-rendered-sections

fix bug 982174: Ensure build_json_data uses rendered HTML when available