From: "Matthias S." Date: 2011-02-10T05:40:27+09:00 Subject: Re: Best practice to create a JSON string of one object containing an array of other objects using R @Brian: Both approaches you proposed result in IOError exception in class A, saying to_json "not opened for reading". Besides adding a class attribute, both approaches are actually similar to the second I mentioned... -- Posted via http://www.ruby-forum.com/.