Json data revised, working on functions to out json elements