Add Dump functions.

Add ToString(): This function is to serialize json.
Add Dump(): This function output a human-readable json.