Add feature to force using AS::JSON for generating output

This enables additional HTML-safe escaping of resulting JSON