Not all, but many, find the details of GatewayScript programming model here:
https://www.ibm.com/support/knowledgecenter/SS9H2Y_7.7.0/com.ibm.dp.doc/gatewayscript_model.html
"... Gateway script includes ECMAScript, CommonJS, and DataPower-specific GatewayScript APIs ..."
------------------------------
Hermann Stamm-Wilbrandt
Compiler Level 3 support & Fixpack team lead
IBM DataPower Gateways (⬚ᵈᵃᵗᵃ / ⣏⠆⡮⡆⢹⠁⡮⡆⡯⠂⢎⠆⡧⡇⣟⡃⡿⡃)
------------------------------
Original Message:
Sent: Tue March 31, 2020 10:51 AM
From: santhosh yelimineti
Subject: sorting json arrary in Gateway script
Thanks a lot Hermann
It worked perfectly . So practically we can use all nodejs scripts in datapower? or do we have any limitations.
------------------------------
santhosh
Original Message:
Sent: Tue March 31, 2020 10:09 AM
From: Hermann Stamm-Wilbrandt
Subject: sorting json arrary in Gateway script
Have you tried to use the code in index.js? It should work.
Rename to jsonabc.js and upload to DataPower local: folder.
Then upload src/app.js to local: folder as well, and use that in GatewayScript action.
------------------------------
Hermann Stamm-Wilbrandt
Compiler Level 3 support & Fixpack team lead
IBM DataPower Gateways (⬚ᵈᵃᵗᵃ / ⣏⠆⡮⡆⢹⠁⡮⡆⡯⠂⢎⠆⡧⡇⣟⡃⡿⡃)
Original Message:
Sent: Tue March 31, 2020 09:44 AM
From: santhosh yelimineti
Subject: sorting json arrary in Gateway script
Thanks for the replies
I am looking for similar to this https://github.com/ShivrajRath/jsonabc
------------------------------
santhosh
Original Message:
Sent: Mon March 30, 2020 09:42 AM
From: Stephen Linn
Subject: sorting json arrary in Gateway script
GatewayScript in DataPower is essentially JavaScript with additional modules provided to allow access to DataPower metadata and functionality. The Array.sort function is a basic JavaScript capability.
Best Regards,
Steve
------------------------------
Stephen Linn
Original Message:
Sent: Fri March 27, 2020 12:31 AM
From: santhosh yelimineti
Subject: sorting json arrary in Gateway script
do we have any function to sort json array in alphabetical order in gateway script ?.
i am aware it is available in latest version (2018.4.1.8)
------------------------------
santhosh
------------------------------