before class
getting json