json parsing bug fixes
json handling and cleaning up table of name