Fixes #5778: correct API with JSON parameters for directives creation&up...

Yes