Splitting json document into parts