8000 Fails for uniform arrays · Issue #4 · bashtian/jsonutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Fails for uniform arrays #4
Open
@fuglede

Description

@fuglede

This may be working as intended but it did catch me by surprise; feeding in a JSON array (of either strings or ints) does not produce a useful result.

$ echo "[\"test\"]" | jsonutil
panic: interface conversion: interface is string, not map[string]interface {}
...
$ echo "[\"test\", \"more test\"]" | jsonutil
panic: interface conversion: interface is string, not map[string]interface {}
...
$ echo "[0, 1]" | jsonutil
panic: interface conversion: interface is float64, not map[string]interface {}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0