this code fails randomly when input comes from specific sources, it works usually OK:
var str = input;
var lines = str.split("¤");
var map = {};
for(var i = 0; i < lines.length; i++) { var pieces = lines[i].split("=");
map[pieces[0]] = pieces[1];}
for example this input data does not create MAP at all, there is just one map entry:
"[core]¤student_id=teach54yuy63v¤student_name=Demo, teacher¤credit=c¤lesson_location=¤lesson_status=n,a¤path=¤score=¤time=00:00:00¤[Core_Lesson]¤tmreal_status=n,a¤tmreal_score=¤¤¤[Core_Vendor]¤¤[Objectives_Status]¤¤"
this data works:
[core]¤student_id=169yyuy63v¤student_name=, Si¤credit=c¤lesson_location=1¤lesson_status=n,a¤path=¤score=¤time=00:00:00¤[Core_Lesson]¤real_status=i¤real_score=¤talhits=int: