SQL query to its equivalent JSON string in javascript -
i want convert sql query equivalent json string. eg in php:-
`query :` select user_id,user_name dummy_data_users user_status='1' `code :` sql2json("select user_id,user_name dummy_data_users user_status='1'");
json :
[ {"user_id":"1","user_name":"binny"}, {"user_id":"2","user_name":"bill gates"}, {"user_id":"3","user_name":"george bush"}, {"user_id":"4","user_name":"secret agent"} ]
i want same using javascript, http://jslinq.codeplex.com/ not suitable me other option ?
Comments
Post a Comment