xml-js icon indicating copy to clipboard operation
xml-js copied to clipboard

_attributes gets added to _attributes?

Open blaasvaer opened this issue 2 years ago • 0 comments

This:

<timetablebook creation="2021-09-20T10:50:45" creation_user="abc" desc="" district_name="" filters="filters" name="" order_type="58" timetablename="K12122020" timetablestatus="-1" timetableversionid="2055" tps_version="4.16.405.11" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="K22.xsd">

Becomes this:

"timetablebook": {
	"_attributes": {
		"creation": "2021-09-20T10:50:45",
		"creation_user": "abc",
		"desc": "",
		"district_name": "",
		"filters": "filters",
		"name": "",
		"order_type": "58",
		"timetablename": "K12122020",
		"timetablestatus": "-1",
		"timetableversionid": "2055",
		"tps_version": "4.16.405.11",
		"_attributes": {
			"creation": "2021-09-20T10:50:45",
			"creation_user": "abc",
			"district_name": "",
			"filters": filters",
			"name": "",
			"order_type": "58",
			"timetablename": "K12122020",
			"timetablestatus": "-1",
			"timetableversionid": "2055",
			"tps_version": "4.16.405.11"
		}
	},

Notice how the _attributes get added to _attributes itself.

This has to be a bug.

blaasvaer avatar Oct 11 '22 08:10 blaasvaer