support for JSON objects and extraInfo in optimizer