Skip to content

json: unsupported type: chan string #388

Closed
@miss-invincible

Description

@miss-invincible

While replacing "encoding/json" with json-iterator, I encountered that json.Marshal used to throw an error when a map of this form was provided:

testMap["key"] = make(chan, string)
error returned: json: unsupported type: chan string

but, json-iterator does not return any such error on encountering this kind of data. json-iterator should have similar behaviour as old json.Marshal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions