Added support for passing options to nested resource
go back to JSON.parse, realized there was still potential for code injection
merged support for passing options to nested resources