[yast-devel] Webyast json serialization in backend
Hi, miso today experiment with json communication and I found that our json provided by webservice is not valid json for ActiveResource. Problem is that Hash.from_xml(model.to_xml).to_json doesn't produce expected json, but more likely hash with expected json. I fix resources and baseModel so all models based on BaseModel is fixed. If you want try how webyast work with json, try miso's branch json on webclient (really easy to enable it) and feel free to report problems in bugzilla. Josef -- Josef Reidinger YaST team maintainer of perl-Bootloader, YaST2-Repair, parts of webyast -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
On 06/29/2010 03:54 PM, Josef Reidinger wrote:
Hi, miso today experiment with json communication and I found that our json provided by webservice is not valid json for ActiveResource. Problem is that Hash.from_xml(model.to_xml).to_json doesn't produce expected json, but more likely hash with expected json. I fix resources and baseModel so all models based on BaseModel is fixed. If you want try how webyast work with json, try miso's branch json on webclient (really easy to enable it) and feel free to report problems in bugzilla. Josef
I wrote something about it on my blog: http://mzugec.blogspot.com/2010/06/webyast-switch-from-xml-into-json-day.htm... -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
participants (2)
-
Josef Reidinger
-
Michal Zugec