Finish JSON module logic,need to be tested