Adds json builder for document + ranges
Makes it look better.