added json parsing

But it doesn't work yet