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
This should give the option to write values as an array at the json root, or if the sequence is a list of (Key, Value) pairs to write it as a dictionary at the json root.
Going to modify how this works and remove the automatic detection of (Key, Value) pairs in favor of an explicit option. Automatic detection would make it not possible to have a root array written of (Key, Value) pairs without degenerating to an explicit option.
Therefor, type signature will be to_json(path, root_array=True) where if root_array is True, the root will be an array, otherwise it will convert a sequence of (Key, Value) pairs to the root dictionary
Implement
to_json
This should give the option to write values as an array at the json root, or if the sequence is a list of
(Key, Value)
pairs to write it as a dictionary at the json root.Child of #19
The text was updated successfully, but these errors were encountered: