Switched from Str to JsonStr for JSON encoding.