Change way to pass json