Tcl Library Source Code

View Ticket
Login
Ticket UUID: 70d8274f904d7321c2e314a30f9f02101039e1ed
Title: json2dict return value
Type: Bug Version: 1.3.3
Submitter: anonymous Created on: 2015-09-02 01:04:09
Subsystem: json Assigned To: nobody
Priority: 5 Medium Severity: Important
Status: Open Last Modified: 2015-09-02 01:04:09
Resolution: None Closed By: nobody
    Closed on:
Description:
It seems that json2dict returns a list for a JSON array, and returns a dictionary for a JSON object.  This seems okay, but is not how json2dict is documented and seems contrary to the name of the function.

Also, if the list for a JSON array happens to have an even number of values, there is no way to tell if the original JSON is an array or an object.  I guess in general there is this schema issue.  It would be nice if the documentation spells this out.

Attachments: