Convert datatable to JSON in C#

I want to get records from database into a DataTable.
Then convert the DataTable into a JSON object.
Return the JSON object to my JavaScript function.
I use this code by calling:

string result = …

Convert object string to JSON

How can I convert a string that describes an object into a JSON string using JavaScript (or jQuery)?

e.g: Convert this (NOT a valid JSON string):
var str = “{ hello: ‘world’, places: [‘Africa’, ‘…

mochijson2 examples!

I’m a two-week old infant with regards to Erlang and Mochiweb. Earlier I had a system running on PHP and soon I realised that it wasn’t going to be able to handle the kind of load I was expecting. So …