pass resource function arguments from JSON

Bobo will pass resource function arguments from data in JSON request bodies.