cubicweb #5642366 Make json_dumps JSString aware [rejected]

It would be nice to have utils.json_dumps to leave ``JSString``s untouched.

ReST / HTML errors:System Message: WARNING/2 (&lt;string&gt; , line 1); <em>backlink</em></p>
Inline literal start-string without end-string.

Currently, this is what happen:

>>> json_dumps({'relation': JSString('{"name": "My Name"}')})
'{"relation": "{\\"name\\": \\"My Name\\"}"}'

It would be nice to have the following behavior:

>>> json_dumps({'relation': JSString('{"name": "My Name"}')})
'{"relation": {"name": "My Name"}}'
prioritynormal
typeenhancement
done in<not specified>
load0.000
load left0.000
closed by<not specified>