fix caps for json fields