"text": "\n\n\n\n Upon completing an order, you will be e-mailed a copy of your order to your registered e-mail address.\nYou can find the status of your order by logging in to your account on our Web site and select My Account \u003E My Open Orders. Select the order in question for details.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",
My query here is that I want to make some changes in the structure of the json format. For example - I want to modify names or ID values for the objects that are children of the “items” objects i.e., change the name of the “root”, "text" or "image" objects or give them a string “id” property that would allow me to identify each as a seperate json property. Also I want to remove some of the json values such as gridclassNames, columnclassNames etc.
Is there a way to do this? I am unable to understand that how is the "root" node created and how can it be modified?
I also have a similar requirement. My page has a content fragment and when i generate model.json , i get a json with many values . now i want to remove/hide unnecessary values from this default json. For example if want remove the templatetype from json. How can i do that? Can you please share me sample code for that? As you said overriding the default is possible.
I am exporting the json of a content fragment in aem 6.4. On doing a model.json on the page it only gives me some data - not the data related to what I have authored inside the content fragment. Since I needed to do this inside a specific project, I tried extending the content fragment component from the core package. However on doing so I noticed that dialog for the content fragment component dialog doesn't seem to work. So now I am not able to author anything inside the content fragment as well.
Can this be related to a service package issue? For content fragment json do i need top install any specific package or service pack in aem 6.4?
However, the problem here is the content fragment which I will be creating are going act as replacements for some components such as header and footer. Another point here which I want to bring to your attention here is that I tried adding these existing components inside the fragment grid of the content fragment. Obviously I was not able to get the json of these components, but I just want to understand why i'm not able to get the complete json.