fix silly mistake with echoing json twice