prepared rest json call