modified json package and update functional test
modified the whole file structor