using ordered dictionaries and methods for displaying json