fixed more json problems

server doesn't crash... well it does kind of