[API] fix empty JSON API response