Added a method to enforce AS::JSON escaping

See this discussion: https://github.com/rails/jbuilder/pull/47/files#r3403308