Language selection

Search


Special test case for JSON manager

This page is a test page to validate some special edge case and to ensure the plugin work as expected.

Test case for PR 9649

Test demo

Expectation of the preceding demo

Value 2

Source code

JSON content

{
	"ref": {
		"itm1": "Value 1",
		"itm2": "Value 2",
		"itm3": "Value 3"

	},
	"alpha": "itm2"
}

JSON manager configuration

{
	"name": "swapEx",
	"url": "demo/test-case.json",
	"patches": [
		{ "op": "wb-swap", "path": "/alpha", "ref": "/ref" }
	]
}

Data JSON configuration

{
	"url": "#[swapEx]/alpha",
	"mapping": [
		{
			"selector": "p"
		}
	]
}

Page details

Date modified: