You have to index from versions , as per your current Json
Attributes , does not include cont...

On Tue, 23 Jun 2020 at 8:39 PM, Sandeep Shukla <sandeep.shu...@gmail.com>
wrote:

> Hi,
> My json is
> {
>     "error": null,
>     "document": {
>         "title": "Hello World Angular",
>         "heading": "subject to changes"
>     },
>     "versions": [
>         {
>             "attributes": {
>                 "sequence": "1",
>                 "versionNumber": "1.6",
>                 "id": "A00100"
>             },
>             "contentElements": [
>                 {
>                     "contentType": "BASE",
>                     "mediaType": "text/xml",
>                     "fileName": null,
>                     "size": 779,
>                     "content": "This is content"
>                 },
>                 {
>                     "contentType": "NOTELOG",
>                     "mediaType": "text/plain",
>                     "fileName": null,
>                     "size": 29,
>                     "content": "Content2"
>                 }
>             ]
>         }
>     ]
> } How do i get the values in html under attributes,contentElements. I am
> unable to get it. Any help would be appreciated. I can handle simple json
> but this is something not working for me. Regards Sandeep Shukla
>
> --
> You received this message because you are subscribed to the Google Groups
> "Angular and AngularJS discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to angular+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/angular/279d78ce-1cc3-45fe-a9cc-ea57eedacc9fo%40googlegroups.com
> <https://groups.google.com/d/msgid/angular/279d78ce-1cc3-45fe-a9cc-ea57eedacc9fo%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
-- 
Sent from Gmail Mobile

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/CAMF%2BC3riuPaCTKh7WWO%2BYkPKWLa5jZQeCfoPbbJoj5m3tvURQw%40mail.gmail.com.

Reply via email to