output json, not to string.

Only for hash and array. I need to work on my ruby :P