While I cast a XML field to JSON using the solution provided by @abelisto on this thread I have the following problem: