Update document.py

making _enrich_json_with_data(j_dic, ann_obj) way faster by replacing all those for loops with one loop with an if/else structure.
Making _enrich_json_with_data more efficient

Fixed whitespace
Merge pull request #1098 from sandernaert/patch-1

Faster ` _enrich_json_with_data(j_dic, ann_obj)`