Modified to allow for blank json string.