Skip to main content

Example: http://playground.fmeserver.com/csharp-request/

Shows String body starting with the words "PublishedParameters" is that required?

The reason I ask is that there is another download example with an HTML form that takes in simple value pair inputs with out the "PublishedParameters" label or title of the json.

String body = "{\\n" +
" \\"publishedParameters\\" : [\\n" +
" {\\n" +
" \\"name\\" : \\"MAXY\\",\\n" +
" \\"value\\" : \\"42\\"\\n" +
" },\\n" +
" {\\n" +

 

To rephrase; why do we have to have name and value and not just something like this:

 

string json = "{\\"publishedParameters\\"::{"
+ "\\"MAXY\\" : 42,"
+ "\\"user_Id\\" : 1249,"
+ "\\"session_key\\" : \\"dvnoewcdw\\","
+ "\\"app_id\\" : 1,"

 

 

 


Reply