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

Popular posts from this blog

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -