Tcl Library Source Code

Artifact [326e35ccd9]
Login

Artifact 326e35ccd992427ec359f57735296cc7a2aa110c:

Ticket change [326e35ccd9] - New ticket [2df194042b2acd13|2df194042b] <i>json2dict does not always produce a dictionary</i>. by nmadden 2015-01-16 10:20:31.
D 2015-01-16T10:20:31.643
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment The\sjson::json2dict\sprocedure\sis\snamed\sand\sdocumented\sas\sif\sit\sproduces\sa\sdictionary\soutput\sin\sall\scases.\sThis\sis\sincorrect,\sas\sper\sthese\sexamples\swhere\sthe\soutput\sis\sa\sstring/number/list:\r\n\r\n%\spackage\srequire\sjson\r\n1.3.3\r\n%\sjson::json2dict\s{true}\r\ntrue\r\n%\sjson::json2dict\s{1234.45}\r\n1234.45\r\n%\sjson::json2dict\s{"Hello,\sWorld!"}\r\nHello,\sWorld!\r\n%\sjson::json2dict\s{[1,2,3,4]}\r\n1\s2\s3\s4\r\n\r\nThe\sdocumentation\s(and\sideally\sthe\sname)\sshould\sbe\supdated\sto\smake\sclear\sthat\sit\sonly\sreturns\sa\sdictionary\sif\sthe\sinput\sis\sa\sJSON\sobject,\sand\sthat\sthe\scaller\s*must\sknow*\sthe\stype\sof\sJSON\sdata\sbeing\sparsed\sin\sorder\sto\sknow\show\sto\sinterpret\sthe\sresult\scorrectly.\sI\shave\sseen\sseveral\squestions\son\sTkChat\sand\sc.l.t\sthat\ssuggest\sthat\sthis\sis\sconfusing\speople.
J foundin 1.3.3
J is_private 0
J login nmadden
J priority 5\sMedium
J private_contact 4d3bc24d727f6c89fb1509fef02f21887282efcc
J resolution None
J severity Minor
J status Open
J submitter nmadden
J subsystem json
J title json2dict\sdoes\snot\salways\sproduce\sa\sdictionary
J type Bug
K 2df194042b2acd13c60b0dd92cdf55c1a0ef3bde
U nmadden
Z 9663b70f3b74407bbcc1b14f39bcc95c