There is a JSON data stored in a variable in javascript. I have to stored it in other file named .json.How can I do it.Json data is something like this :
{
"method":"get",
"class":"form-horizontal",
"html":[{
"type":"div",
"class":"form-group",
"id":"input_Name",
"html":[{
"type":"label",
"class":"control-label col-sm-2",
"for":"input_Name",
"html":"Name"},
{
"type":"div",
"class":"col-sm-10",
"html":[{
"type":"text",
"class":"form-control",
"name":"input_Name",
"id":"input_Name",
"placeholder":"user@example.com"
}]
}]
}]
}