awful json parsing from anders