Get values from a sensor request. Refactor of JSon class code so it works now.