#NEWLINE# def getFullMessagesFromJson( path ) : #NEWLINE# #INDENT# '\n    Read JSON report data from path.\n    ' #NEWLINE# with open ( path , 'r' ) as fp : #NEWLINE# #INDENT# data = json . load ( fp ) #NEWLINE# messageList = [ ] #NEWLINE# keyList = sorted ( data . keys ( ) ) #NEWLINE# for k in keyList : #NEWLINE# #INDENT# v = data [ k ] #NEWLINE# v [ 'id' ] = k #NEWLINE# messageList . append ( data ) #NEWLINE# #UNINDENT# return messageList