optimize code ex6.2-Load-content-JSON