Skip to content

Serialize array.array to JSON by default #70451

Open

Description

@thedrow
mannequin
BPO 26263
Nosy @rhettinger, @pitrou, @ezio-melotti, @thedrow, @AnishShah

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 2016-02-01.18:50:39.869>
labels = ['extension-modules', 'type-feature']
title = 'Serialize array.array to JSON by default'
updated_at = <Date 2016-03-08.18:59:11.299>
user = 'https://github.com/thedrow'

bugs.python.org fields:

activity = <Date 2016-03-08.18:59:11.299>
actor = 'shakur shams Mullick'
assignee = 'none'
closed = False
closed_date = None
closer = None
components = ['Extension Modules']
creation = <Date 2016-02-01.18:50:39.869>
creator = 'Omer.Katz'
dependencies = []
files = []
hgrepos = []
issue_num = 26263
keywords = []
message_count = 1.0
messages = ['259341']
nosy_count = 6.0
nosy_names = ['rhettinger', 'pitrou', 'ezio.melotti', 'Omer.Katz', 'anish.shah', 'shakur shams Mullick']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'open'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue26263'
versions = ['Python 3.6']

Activity

  1. thedrow commented on Feb 1, 2016

    thedrowmannequin
    MannequinAuthor

    Is there a reason why the JSON module doesn't serialize array.array() instances by default?
    Currently you need to convert them to tuples but I'm confident that the C API for those types is enough to iterate over the array and serialize it to a JSON list.
    We should support serializing arrays by default in my opinion.

  2. added
    interpreter-core
    type-feature
    on Feb 1, 2016
  3. added
    extension-modules
    and removed
    interpreter-core
    on Feb 2, 2016
  4. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    extension-modulestype-feature

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions