for issue #41 finished to build json