modify convert to json problem