use objx for handling the JSON, remove errors in test.  These changes fix the problem of float to int conversion and loss of precision.