Merge pull request #19 from indykish/master

wrap json_attributes in backquote to escape a single quote.
Fix json parsing error
Merge pull request #21 from rajthilakmca/master

Fix json parsing error
defer Flush of log, load identity file from /var/lib/megam/megamd path