converted 'interfaces' to JSON