GenerateJson / RawInterfaceJson defined (more or less).