first working settings marshalling to JSON