Json in Named Query in parameters

Thanks for the comment @Transistor - sorry for the delay i was on vacation. i got the solution i will paste it here we need use casting so that we can transform string to json