How will I read this JSON response in Angular 2?

25 views
Skip to first unread message

arvind yadav

unread,
Dec 15, 2017, 1:01:41 AM12/15/17
to Angular and AngularJS discussion

{"response":{"ttCustomer":{"ttSchema":[{"field_name":"cust-num","table_name":"Invoice"}, {"field_name":"cust-num","table_name":"Customer"}, {"field_name":"cust-num","table_name":"Order"},{"field_name":"cust-num","table_name":"Ref-Call"}]}}}

Sander Elias

unread,
Dec 15, 2017, 2:58:00 AM12/15/17
to Angular and AngularJS discussion
Hi Arvind,

What do you want to read? it looks like a description of tables that hold a certain field. what is it you want to do with this?

Regards
Sander

arvind yadav

unread,
Dec 20, 2017, 9:55:05 PM12/20/17
to Angular and AngularJS discussion
I want to read the response to display it in HTML page in proper format.

Sander Elias

unread,
Dec 21, 2017, 4:14:43 AM12/21/17
to Angular and AngularJS discussion
Hi Arvind,

What means "proper format" to you? 

This will properly format the thing in your html, but it might not be what you want.

<pre><code>{{resultingData | json:true }}</code></pre>


Regards
Sander

Arvind Yadav

unread,
Dec 21, 2017, 10:18:38 AM12/21/17
to ang...@googlegroups.com
Proper format means... get the values of field_value and table_name and display them in html four rows .

Sent from my iPhone
--
You received this message because you are subscribed to a topic in the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/2FPJm0qScs4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages