Bugfix. Empty JSON string brought errors.