내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Parsing Javascript file in AEM

Avatar

Level 3

Hi All,

I have a requirement to parse javascript file in OSGI Bundle and retrieve details from it.

I have done parsing of JSON only till now.

Do we have AEM libraries to parse Javascript ?

Sample JS file:

var xyz = "firstname"

var age = 30

family="Tech family";

details=[["Column1","Column2","Column3",...], [....], [.....] ]

Any pointers will be really helpful.

Thanks!

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

Hi Parvathy,

To what end do you want to parse Javascript?

It's possible to use build in Google Closure Compiler to compile JS.(Build in AEM OOTB)

It's possible to include library in your code to parse JS in any way you prefer.(Custom code)

It's possible to include Chrome driver and run your code via Chrome driver.(Custom code)

Regards,

Peter

원본 게시물의 솔루션 보기

1 답변 개

Avatar

정확한 답변 작성자:
Community Advisor

Hi Parvathy,

To what end do you want to parse Javascript?

It's possible to use build in Google Closure Compiler to compile JS.(Build in AEM OOTB)

It's possible to include library in your code to parse JS in any way you prefer.(Custom code)

It's possible to include Chrome driver and run your code via Chrome driver.(Custom code)

Regards,

Peter