Added additional logic to generate properly-formed JSON string to send to the callback.

[Finishes #67345704]
Merge pull request #15 from rhomobile/sync-notify-json-parse-fix

Added additional logic to generate properly-formed JSON string to send to the callback.