finally got my head around json objects