Small bug fix for datajson conversion