I'm writing a dashboard for my company.  I finished the Proof of Concept with everything done manually.  The C# data feed built JSON objects based on the particular query I needed and then the Javascript client received the message and simply said if the message ID is xxx do this.  For the 3 queries/widgets in the POC this was great.  However, duplicating the C# functions and form elements and javascript IF statements 100 times was obviously not a good idea.I have finished rewriting the data feed so that it is completely dynamic.  You define a query object which includes an ID, SQL, Datasource, etc and add it to a query array.  This is loaded from an INI file and has a GUI.  It steps through the array and packages the results in a consistent manner regardless of whether it's a single value or a thousand rows with 10 columns.  Now, on to handling it in the client.  I'm not really sure where to begin so I'm looking for advice.  I haven't done web dev in a couple years, but I was tinkering with Polymer at the time.  The thought has crossed my mind that I could use Polymer (or Polymer-like) components to do this.  They could contain all the HTML/CSS/JS to process the data.  The problems with this are 1) I never really got a grasp on polymer and 2) I wouldn't know where to begin on routing the messages to a particular component dynamically.Any advice or direction would be much appreciated.
Routing and parsing JSON messages to different javascript widgets
javascript;data;dynamic programming;component