Algorithm will convert java?

Standard json to be stored