finished  generate json and parse json