__repr__ and automatic proxy wrapping for json result