finish parse joson function.