Answers for "convert file to json javascript"

PHP
41

convert object to json javascript

var person={"first_name":"Tony","last_name":"Hawk","age":31};
var personJSONString=JSON.stringify(person);
Posted by: Guest on July-23-2019
0

convert xml file to array php

$xmlfile = file_get_contents($path);
		$ob= simplexml_load_string($xmlfile);
		$json  = json_encode($ob);
		$configData = json_decode($json, true);
Posted by: Guest on March-20-2020

Code answers related to "convert file to json javascript"

Browse Popular Code Answers by Language