refactor for JSON create

Create resources now uses JSON constructor {'resourceName': 'xxx',
'resourceClass': 'xxx']