[SD] Add function return json result.
[SD] Merge code.