Formating content rendered from wordpress REST API as JSON and not HTML

Formating content rendered from wordpress REST API as JSON and not HTML

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)