fixed json api support
json api makes no sense if erb is allowed and not rendered