Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4836

How to represent complex JSON BackEnd Response with nested arrays in Ember Model and Filter only certain element to appear in Template

$
0
0

@Mhussein27 wrote:

Hi All, The below is the BackEnd Response with nested arrays and object , How Can filter two element from the below response and represent them in Ember Model and template .

I am Interested only to filter these two element (original & string ) from the below complete response : “input”:{
“original”:“Hello”, “reply”:{
“string”:“Hi!”,

The Complete Response : {
“ss_user”:[
{
"_id":“59821c4a9e509e6e6f131943”, “id”:“user1”, “tenantId”:“master”, "__v":0, “currentTopic”:“random”, “history”:[
{
"_id":“59821c53f8849625c8d77e97”, “topic”:“random”, “reply”:{
“replyId”:“5981fb71f8849625c8d77e8a”, “replyIds”:[ ], “clearConversation”:false, “topicName”:“random”, “debug”:[ ], “string”:“Hi!”, “subReplies”:[ ], “stars”:[ ], “createdAt”:1501699155189 }, “input”:{
“original”:“Hello”, “clean”:“Hello”, “timestamp”:“2017-08-02T18:39:07.925Z” }, “stars”:[ ] } ], “pendingTopic”:null, “lastMessageSentAt”:“2017-08-02T18:39:15.030Z” } ] }

Thanks for your support.

Maha

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4836

Trending Articles