Computer price from json

Raphy, please accept this pull request.

However, you'll note that I had to assign params to another variable, "jparams".  The merge didn't work if I didn't do this---I don't really know why, some rubyism that is beyond me.

It computes the price now.