Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293850

How to get comments of a node with json api?

$
0
0

I want to get the list of comments of an article. I tried it by using views but the whole field is giving string value instead of an array. I tried it with json module but it's only giving me limited amount of information like:

"field_comments": {
"status": 2,
"cid": 4,
"last_comment_timestamp": 1590816874,
"last_comment_name": "rakesh",
"last_comment_uid": 0,
"comment_count": 4
}

How can I get all the comments to the article?


Viewing all articles
Browse latest Browse all 293850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>