sync/async json call to backend