Replace none in user friendly json format.
Remove duplicated code.
Add tests.
Merge pull request #12 from 4teamwork/deif-replace-none

Replace none in user friendly json format.