Allowing for a custom set of opts to be passed to TO_JSON