我想获得像在Drupal 8个节点干净的JSON响应:如何在Drupal 8中为节点/ {nid}获得干净的JSON响应?
{
"title":"big news happens somethere",
"body":"a lot of description here",
"tag":[
"news",
"story"
]
}
我知道一种方法是使用其他意见显示,在那里我可以指定列别名。但是,通过这个,我将得到一个JSON数组,其中count为1的单个节点。
我怎样才能得到一个干净的架构结构正好n个JSON对象呢?