Improve the way Json structures are generated - Mendix Forum

Improve the way Json structures are generated

3

In Mendix Studio Pro, when you add a new JSON structure and you copy paste the example payload, and there are multiple objects of the same type, it will just pick the first one to get the fields. The first object in the example payload may not have everything filled, though... So consider this example payload:

 

[
	{
		"Name": "Me"
	},
	{
		"Name": "You",
		"Address": "Home"
	}
]

 

When we create a json structure from it, it only includes the Name... However, I would also like to have Address included! So, the same result as if you would input the following json to create the json structure:

 

[
	{
		"Name": "String",
		"Address": "String"
	}
]

 

asked
0 answers