Cleaned up pattern rendering, any pattern can accept JSON, prevent error if JSON extension is not before pattern in filesystem