On 7/9/06, Yonik Seeley <[EMAIL PROTECTED]> wrote:
<> Very cool--this would definately be useful in my application (interpreting it as python).
- Order won't be maintained in a NamedList. Solr will maintain order when serializing to JSON, but most client sides will ignore that ordering (only arrays are ordered). This isn't a problem for normal result sets, but could be a problem for custom data for faceted browsing for instance.
I agree that most of the time this isn't a problem. I'm not familiar with JSON, but a possible solution in the python realm is to provide an option which serializes NamedLists as a list of (key, value) tuples. Python provides a trivial way to convert this back to a dictionary.
Other potential issues: would it be useful to be able to change the serialized format so that something like Ruby could do a direct eval() like JavaScript can? Might also want to have an option to use python unicode strings also ( u'my unicode string' ) Comments, suggestions, criticisms?
+1 on python output mode (or subclass). -Mike