Takes a JSON with two keys to_round and prec.
to_round is an object like a dictionary/map, a list or a number or string.
prec is the needed rounding precision
The algorithm will find all the floating point numbers and round them to prec decimal points and return the object. If prec < 0, no rounding will happen.