- DeserializeJSON of null value
result = deserializeJSON('{"test": null}');
writedump(result);
writeoutput(result.test);
In CF9, result.test is string value: "null".
In CF10, the above code will have error, because result.test is "undefined".
Tips that make life of a software engineer easier. Well, not exactly. Some posts are open questions that I haven't found an answer ... yet
result = deserializeJSON('{"test": null}');
writedump(result);
writeoutput(result.test);
ExtJS | ASP.NET | _ |
---|---|---|
itemId | ID | (Recommended) HTML element's ID is automatically generated to ensure uniqueness, usually by concatenating ID of the container hierarchy. Programmer only need to ensure ID is unique within it's container. |
id | ClientID | (Not recommended) Rendered HTML element will use this property as their ID. It's programmer's responsibility to ensure it is unique across the whole page (think when you starting to have multiple instances of the same control on a page). |
*