adding a little code, start to generating JSON object;