read json from server