I'm not sure this is a bug or what. But when I create API view page and add field (which is field collection), it rendered HTML instead of 'neat' JSON.
For example it should be look like :
field_collection_name: [
{
"title": "Big Title"
"field_a": "content"
},
{
"title": "Big Title 2"
"field_a": "content 2"
},
{
"title": "Big Title 3"
"field_a": "content 3"
}
]
Instead, the JSON in api view render like this:
field_collection_name: <div class="field--name-title">Big Title</div><div class="field--name-field_a">content</div><div class="field--name-title">Big Title2</div><div class="field--name-field_a">content 2</div><div class="field--name-title">Big Title 3</div><div class="field--name-field_a">content 3</div>
Anyone experience same problem like this before? Any settings need to set for field collection?