Published on : August 28, 2020
Title | : | json encode |
Purpose | : | To convert Array into json |
Syntax | : | [template.set json_data ={array_variable.json_encode}/] |
Input Parameter | : | Array |
Return value | : | Json string |
Example | : |
[template.set_array info]
[lapp_id]201271[/lapp_id]
[customer_id]7[/customer_id]
[customer_name]Govind Garge[/customer_name]
[/template.set_array]
[template.set json_data ={template.info.json_encode}/]
[env.get template.json_data /]
|
Output | : | Json string |
Description | : | We can convert array into json string using this function |