Expose less internal state when rendering json.