Published on : August 28, 2020
Title:json decode
Purpose : To convert Array into json
Syntax :[template.get <json variable> json_decode=true o.set=template.snapshots /]
Input Parameter :Json sting
Return value :Array
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 /] [template.set array_data={template.json_data.json_decode} /] [template.echo array_data /]
Output :Array
Description: We can convert json string into array using this function