respond_with conditions

I want json data passing date parameter … As users has_many sub_users I want those sub_users data also with same condition as users. Is it possible to achieve that ?

Sure it is possible. The only thing is, the right place isn’t inside respond_with. =p

If I want to fetch the json data in nested form ?