json working but partially correct