Added resource_data changes to support JSON as string payload