Skip to content

how to add two json string in single object?? #1012

@Mamlesh

Description

@Mamlesh

like..

{
	"WALL": [
		{
			"Data": {
				"Count": 2,
				"POINT": {
					"Point1": {
						"X": 1942.6468505859375,
						"Y": 2344.69677734375,
						"Z": 0
					},
					"Point2": {
						"X": 3313.0263671875,
						"Y": 2062.294189453125,
						"Z": 0
					}
				},
				"Type": "LINE"
			},
			"Layer": "WALL_T"
		}
	]
}

and

{
	"Data": {
		"Count": 2,
		"POINT": {
			"Point1": {
				"X": 2015.12353515625,
				"Y": 2028.6619873046875,
				"Z": 0
			},
			"Point2": {
				"X": 2967.66357421875,
				"Y": 1559.193359375,
				"Z": 0
			}
		},
		"Type": "LINE"
	},
	"Layer": "WALL_T"
}

i want to add second string in first "wall" array..
result be like ..

{
	"WALL": [
		{
			"Data": {
				"Count": 2,
				"POINT": {
					"Point1": {
						"X": 1942.6468505859375,
						"Y": 2344.69677734375,
						"Z": 0
					},
					"Point2": {
						"X": 3313.0263671875,
						"Y": 2062.294189453125,
						"Z": 0
					}
				},
				"Type": "LINE"
			},
			"Layer": "WALL_T"
		},
		{
			"Data": {
				"Count": 2,
				"POINT": {
					"Point1": {
						"X": 2015.12353515625,
						"Y": 2028.6619873046875,
						"Z": 0
					},
					"Point2": {
						"X": 2967.66357421875,
						"Y": 1559.193359375,
						"Z": 0
					}
				},
				"Type": "LINE"
			},
			"Layer": "WALL_T"
		}
	]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions