You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The python None value will translate to null when using json.dumps()
One could also just drop the else statement and simply get no name/value pair for this line.
The text was updated successfully, but these errors were encountered:
There is a possible improvement in b696398 in the way we convert markdown to JSON.
Bug:
If the value is empty (for example
- identifier:
), the equivalent json will bewhich is both ugly and nonstandard for JSON.
The convention would rather be to have no name/value pair at all or having the
null
valueSolution:
My improved code based on the actual one:
The python
None
value will translate tonull
when usingjson.dumps()
One could also just drop the
else
statement and simply get no name/value pair for this line.The text was updated successfully, but these errors were encountered: