Server json creating fix
[ fixed #24]