The following is an exercise from "A Course on Borel Sets" by S.M. Srivastava.
Exercise 4.7.10 Let $X$ be a Polish space and $B \subseteq X \times \mathbb R^n$ a Borel set with convex sections (i.e. $B_x=\{y\in\mathbb R ^n: (x,y)\in B\}$ are convex). Show that $B_X$ is Borel.
I am in particular interested in whether such a proof would generalize to having $\mathcal P^1(\mathbb R ^n)$ instead of $\mathbb R^n$, where $\mathcal P^1(\mathbb R ^n)$ denotes the space of finite first order probability measures on $\mathbb R ^n$.
Any help would be very much appreciated!
Many thanks in advance!