Please rename that method, it does not actually show rules details, it only build the JSON (array of lines) that describe what will be displayed. 
Something like buildDatatableJsonSource seems more adequate. 
Moreover, please comment that method ! It's in no way a simple little utility method, it's the main entry point to actually get the usefull things, and so the main interface toward consumer code (for example, what is used for refresh).