JavaScript associative array to JSON
Arrays should only have entries with numerical keys (arrays are also objects but you really should not mix these). If you convert an array to JSON, the process will only take numerical properties into account. Other properties are simply ignored and that’s why you get an empty array as result. Maybe this more obvious if … Read more