Bug 1051109 - Define non-static method to jsonify interface attributes r=smaug