added promise for ASYNC support in REST JSON