Fixed the JSON parsing so that it works correctly.  It also pulls more variable out that will be use for params later