Jason encode when associations not loaded

Don’t the *_json.ex and *_html.ex kind of do the same as the view files? I haven’t kept up with Phoenix 1.7.