Need to read/export json of experience fragment

Avatar

Avatar
Validate 1
Level 2
berni7473
Level 2

Likes

6 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
berni7473
Level 2

Likes

6 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
berni7473
Level 2

21-01-2019

@@@Hi,

I am creating an experience fragment which would have two or three components. I need to get the json for components inside this experience fragment. Currently I am able to get the json details of the experience fragment but not the components inside them.

This json data needs to be passed as a service to a webapi. A service needs to be created which will get this json data in a service and via that service data will be sent to the webapi.

Can anyone please provide some pointers for the same?

1673396_pastedImage_0.png

The json for the page is as follows:

1673398_pastedImage_2.png

Regards,

Berni

Feike Vissersmacdonald2008

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,204 likes

Total Posts

6,410 posts

Correct reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,204 likes

Total Posts

6,410 posts

Correct reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

22-01-2019

By default, Experience Fragments are delivered in the HTML format. This can be used by both AEM and third party channels alike.

For export to Adobe Target, HTML is used. See Target Integration with Experience Fragments for full information.

Export from AEM to Adobe Target currently only exports the HTML and there isn't any way to export it as a JSON.

Whereas Content fragment could be exported.

Another way is that Abhishek mentioned here.

Answers (6)

Answers (6)

Avatar

Avatar
Give Back 5
Employee
Abhishek_Dweved
Employee

Likes

15 likes

Total Posts

37 posts

Correct reply

11 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Give Back 5
Employee
Abhishek_Dweved
Employee

Likes

15 likes

Total Posts

37 posts

Correct reply

11 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile
Abhishek_Dweved
Employee

22-01-2019

I think if you create experience fragment with core components or develop your components using ComponentExporter,

it should provide all the content in JSON format.

Refer Enabling JSON Export for a Component  for details.

Avatar

Avatar
Springboard
Level 4
chirran414
Level 4

Likes

53 likes

Total Posts

62 posts

Correct reply

3 solutions
Top badges earned
Springboard
Establish
Validate 10
Validate 1
Ignite 5
View profile

Avatar
Springboard
Level 4
chirran414
Level 4

Likes

53 likes

Total Posts

62 posts

Correct reply

3 solutions
Top badges earned
Springboard
Establish
Validate 10
Validate 1
Ignite 5
View profile
chirran414
Level 4

22-07-2019

Hello kautuksahni​ Agreed, by default, Experience Fragments are delivered in the HTML format. This can be used by both AEM and third party channels alike. So i created an Experience fragment and I am trying to expose/ host the static content in e-mail template. Could you please give me some inputs how can we achieve that.

Here is the use case I am trying.

How to host an Experience fragments in an email template?

Avatar

Avatar
Validate 1
Level 3
sr508
Level 3

Likes

2 likes

Total Posts

51 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile

Avatar
Validate 1
Level 3
sr508
Level 3

Likes

2 likes

Total Posts

51 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Ignite 5
Ignite 3
Ignite 10
Ignite 1
View profile
sr508
Level 3

09-05-2019

Hi,

I tried to work as mentioned in Enabling JSON Export for a Component

I have created a experience fragment with image component from core components /apps/core/wcm/components/image/v2/image.

I have used the XF in the page
http://localhost:5002/editor.html/content/we-retail/us/en/user.html

suppose i have configured the dialog having alt text as "my test image"

now how can i get the component data as json(as if my test image in json)??

Any supported documentation would be helpful.

Avatar

Avatar
Validate 1
Level 2
berni7473
Level 2

Likes

6 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
berni7473
Level 2

Likes

6 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
berni7473
Level 2

22-01-2019

Developing components from scratch would be a bit difficult since all components are already existing. However, I'll try this method once and let you know if it worked.Thanks.

Avatar

Avatar
Validate 1
Level 2
berni7473
Level 2

Likes

6 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
berni7473
Level 2

Likes

6 likes

Total Posts

26 posts

Correct reply

1 solution
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Applaud 5
View profile
berni7473
Level 2

22-01-2019

Yes, I have checked the AEM Content Services. However that is for content fragment and i'm trying to implement the same thing using an experience fragment. I tried referring the the following links but did not find anything useful:

Adobe Experience Manager Help | Using Content Fragments and Content Services in AEM

Adobe Experience Manager Help | Getting Started with AEM Content Services

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

22-01-2019

Have you looked into AEM Content Services that provide this functionality?