Hi, good point, I removed the "param=" part and the result is still the 
same. I added the "param=" part because the WebService is using it. For 
instance, when I use the same JSON file in the Postmane software, I do not 
add "param=" to it, instead I specify it as a key. The software has the 
fields "key" and "value", I put "param=" as a key and the JSON content as a 
"value".
How can I do that in Ansible, how to specify the key?



On Wednesday, January 2, 2019 at 6:49:04 PM UTC+2, Kai Stian Olstad wrote:
>
> On Wednesday, 2 January 2019 17:41:05 CET Hristo Georgiev wrote: 
> > *Here is my JSON file:* 
> > 
> > param={ 
> >     "Username": "*****", 
> >     "Password": "******", 
> >     "MessageInfo": { 
> >         "messageId": "", 
> >         "messageType": "Some Type", 
> >         "category": "Some Category", 
> >         "message": "Message to be added to the WebService", 
> >         "recurrenceFlag": "0", 
> >         "indCode": "", 
> >         "requestor": "", 
> >         "implementer": "", 
> >         "ticketNumber": "Ticke tnumber", 
> >         "systemList": [ 
> >             { 
> >                 "systemId": "", 
> >                 "systemName": "The system the message should be added 
> to", 
> >                 "ucmdbCiId": "" 
> >             } 
> >         ], 
> >         "instanceList": [], 
> >         "schedule": { 
> >             "tzName": "(GMT+01:00) Amsterdam, Berlin, Bern, Rome, 
> > Stockholm, Vienna", 
> >             "startDate": "25.03.2019 00:30", 
> >             "endDate": "25.03.2019 04:15", 
> >             "startDay": null, 
> >             "endDay": null, 
> >             "startTime": null, 
> >             "duration": null, 
> >             "weeklyDays": null, 
> >             "monthlyDay": null 
> >         } 
> >     } 
> > } 
>
> This is not valid json file, to make it valid "param=" must be removed. 
>
>
> -- 
> Kai Stian Olstad 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/9bd974c8-753e-49e5-85bc-8ac95482775c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to