Skip to content

json dump/dumps: support printing arrays on a single line #91114

Open
@dmarshall-bing

Description

@dmarshall-bing
BPO 46958
Nosy @dmarshall-bing
PRs
  • gh-91114: Added argument for json dump/dumps to print arrays (from lists and tuples) on one line #31762
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = None
    created_at = <Date 2022-03-08.13:59:16.132>
    labels = ['type-feature', 'library', '3.11']
    title = 'json dump/dumps prints each array element on a new line (bad for readability)'
    updated_at = <Date 2022-03-08.14:20:52.824>
    user = 'https://github.com/dmarshall-bing'

    bugs.python.org fields:

    activity = <Date 2022-03-08.14:20:52.824>
    actor = 'Entirity'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Library (Lib)']
    creation = <Date 2022-03-08.13:59:16.132>
    creator = 'Entirity'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46958
    keywords = ['patch']
    message_count = None
    messages = []
    nosy_count = 1.0
    nosy_names = ['Entirity']
    pr_nums = ['31762']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue46958'
    versions = ['Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.13bugs and security fixesstdlibPython modules in the Lib dirtype-featureA feature request or enhancement

      Projects

      Status

      No status

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions