fixed json formatting problems