Fix problem saving empty json messages.
Clean up converter logic a bit.
Merge pull request #558 from jfwood/verify-resource

Fix problem saving empty json messages.