1) update json structure to make it more readable
2) use functor in type_rtechn