See also: IRC log
<trackbot> Date: 10 September 2014
Steven: I got a comment from
someone about edge cases in the JSON transformation
... {v:null}
... which comes out as
... <v type="null""/>
... {v:""}
<v> </v>
scribe: <v></v>
... assume <json><json> around these
... {v:[]}
... <v type="array"></v>
... {v:[""]}
... <v type="array"></v>
... {v:{}}
... the last one is not covered in the spec.
... I can see two ways to solve
... one is to mark empty arrays and objects with an
attribute
... (this is only so that when you export it again as json, you
know how to write it)
... there is nothing essential to internal processing
... the other solution is to mark texts with a type.
... Numbers are already marked with a type, to distinguish them
from texts
... eg {a: "1"; b: 2}
... <a>1</a><b
type="number">1</b>
... if we introduce a type="text" (or "string" doesn't
matter)
... then you can distinguish between an empty array and an
array with one element of an empty string.
Alain: I like type="text"
... I would like to mark empty arrays
Steven: The problem with that is
if the element gets updated, and is no longer empty, it still
has the attribute...
... so you can't rely on that attribute.
<scribe> ACTION: Steven to update JSON algorithm [recorded in http://www.w3.org/2014/09/10-forms-minutes.html#action01]
<trackbot> Created ACTION-1977 - Update json algorithm [on Steven Pemberton - due 2014-09-17].
http://www.cwi.nl/~steven/forms/WD-xforms20-20140702/Overview.html
http://www.cwi.nl/~steven/forms/WD-xforms-xpath-20140702/Overview.html
Erik: No progress on my part yet.
Steven: I hope by next week we'll have some comments in, anyway.
Alain: None.
[ADJOURN]
This is scribe.perl Revision: 1.138 of Date: 2013-04-25 13:59:11 Check for newer version at http://dev.w3.org/cvsweb/~checkout~/2002/scribe/ Guessing input format: RRSAgent_Text_Format (score 1.00) Succeeded: s/jos/jso/ Succeeded: s/liek/like/ Succeeded: s/makr/mark/ No ScribeNick specified. Guessing ScribeNick: Steven Inferring Scribes: Steven Default Present: ebruchez, [IPcaller], Steven Present: ebruchez [IPcaller] Steven Alain Regrets: Nick Philip Agenda: http://lists.w3.org/Archives/Public/public-forms/2014Sep/0005 Found Date: 10 Sep 2014 Guessing minutes URL: http://www.w3.org/2014/09/10-forms-minutes.html People with action items: steven[End of scribe.perl diagnostic output]