test json parsing with onJson.