improve how we return json via the rest client, with jsonya support for translating objects to json primitives