In SpringBoot, I get a JSON data, including some attribute , but I can't catch its attribute in JavaScript , like
var article = $ {
json(article)
};
var htmlContent = article.author;
In the Chrome Development tool, I can see
but Console can print
article.author
"aaa"
How can I fix it?