What I need: I have different Dexterity types that have a JSON-field. I don't want to repeat code and add that field to every type. I think this could be best accomplished with a behaviour.
Why a Text field is not optimal: The text field simple stores a string and makes no checks at all. The JSONField checks if the JSON (i.e. the dict) is "well-formed"
I need a way to create a JSONfield and its widget in a behavior.
The JSONField is not a IText-ish field. Actually it is a IDict field.
What I'm searching for is the json widget for a dict field.
With other words: is there a documentation or a link to source code that explains the options and the meaning of the widget-key called by plone.restapi @types (see example in my question)?