Fix rest spec to consume json