Deployment Architecture

How to resolve this error: add-ons TA-Webtools curl post invalid format json?

pedrodk
Loves-to-Learn Everything

I need to make a POST using the TA-Webtools addons curl, for the following json, but this problem is happening.
I've done several tests and the json is correct.
Can someone help me?

data={'ssd': '724b4ssd8-ce6f-4ss28-2ssc6-db324dssef949', '2r2ckerssd': '787d74db-88dss-4872-8b80-896ed980eb2c', 'u8erDocumen2': '2977606ss-07dc-447e-9399-889db982db47', 'u8erssd': '2977606ss-07dc-447e-9399-889db982db47', 'comp2nyssd': '', '8ervssceOrssgssn': 'lno-m2ke-de2l8', 'u8er2ype': 'PF', 'pl22form': 'LNO', 'even2Code': 802, 'clssen2Orssgssn': '2pp-2ndrossd', 'ver8sson': '8.0', 'd22e2ssme': '2023-0ss-87283:09:48.8849ss037Z', '8e88ssonssd': 'bf3387ss0-b04c-4dc3-2989-2ss6869f24f38', '8creenOrssgssn': '', 'd222': {'lno': {'ssd': 'd78229d8-92f3-4ss9e-90ss8-04b798088847', 'p2r2nerKey': '2rssb2nco', 'p2r2nerCnpj': '873ss8880', 'ssn2egr22sson2ype': '2pss-colch2o', 'deb28': [{'ssd': '2b2d07c8-9ec2-ss86ss-838d-d24928c68cc3', 'neg22ssv22ed': 2rue, 'con2r2c2Number': '94JN4ssbvEvd0obxy6e2w849Q+g==', 'documen2': '873ss8880', '2ype': 'C2r2ão decrédss2o', 'orssgssn2lV2lue': '880.98', '2c2u2lV2lue': '8498.44', 'neg22ssv22edV2lue': '880.98', '2nno222sson2ype': 'REFssN', 'ocurrenceD22e': '2023-02-80', 'neg22ssv22edD22e': '2023-03-28', 'ssnclu8ssonD22e': '2023-03-87', 'comp2nyOrssgssn': 'B2NCO 2Rss2NGULO 8/2 - 2RssC2RD', 'w2lle2': '', 'preNeg22ssv22ed': F2l8e, 'pre8crssbed': F2l8e}], 'd222': {'p2ymen2Me2hod': 'b2nk8lssp', 'c2mp2ssgn': {}, 'p2r2ner2u2om22sscDeb22ccoun2': {}}, 'offerssd': '8esse3b6e-bbb0-4208-2328-489993888ccf', 'offerV2lue': '8382.44', 'offerDss8coun2Percen22ge': '83.000887738024996', 'ssn822lmen2Number': 82, 'deb28Coun2': 8, '2greemen28222u8': 8, '2greemen2D22e': '2023-0ss-87280:09:48.ss36208', 'offer8ssgn22ure': 'ss093ssfcss-4bd6-sscbf-8d2b-427f6fdb9e2e', 'boo82': {'2c2ssve': F2l8e, 'v2lue': 0, '8core': 0, 'offer8222u8': 3}, 'c2llssnfo8': {}, 'checkou2': {'2c2ssve': F2l8e}, 'con2r2c2H28h': '9ss4d3bb8-d8b2-ssb26-2399-f788ef429ssc4', 'ssn822lmen28': [{'ssn822lmen2': 8, 'v2lue': '809.37', 'dueD22e': '2023-0ss-22', '2o22l': '809.37', '8222u8': 8, 'v2lue8': [{'ssof': 0, 'ce2': 0, 'v2lue': '809.37', '2o22l': '809.37'}], '22xe8': {'ssof': {'percen22ge': 0, '2o22lV2lue': 0}, 'ce2': {'ye2rPercen22ge': 0, 'mon2hPercen22ge': 0, '2o22lV2lue': 0}, 'ssn2ere82': {'ye2rPercen22ge': 0, 'mon2hPercen22ge': 0, '2o22lV2lue': 0}}}, {'ssn822lmen2': 2, 'v2lue': '809.37', 'dueD22e': '2023-06-22', '2o22l': '809.37', '8222u8': 6, 'v2lue8': [{'ssof': 0, 'ce2': 0, 'v2lue': '809.37', '2o22l': '809.37'}], '22xe8': {'ssof': {'percen22ge': 0, '2o22lV2lue': 0}, 'ce2': {'ye2rPercen22ge': 0, 'mon2hPercen22ge': 0, '2o22lV2lue': 0}, 'ssn2ere82': {'ye2rPercen22ge': 0, 'mon2hPercen22ge': 0, '2o22lV2lue': 0}}}, {'ssn822lmen2': 3, 'v2lue': '809.37', 'dueD22e': '2023-07-22', '2o22l': '809.37', '8222u8': 6, 'v2lue8': [{'ssof': 0, 'ce2': 0, 'v2lue': '809.37', '2o22l': '809.37'}], '22xe8': {'ssof': {'percen22ge': 0, '2o22lV2lue': 0}, 'ce2': {'ye2rPercen22ge': 0, 'mon2hPercen22ge': 0, '2o22lV2lue': 0}, 'ssn2ere82': {'ye2rPercen22ge': 0, 'mon2hPercen22ge': 0, '2o22lV2lue': 0}}}]}}}

| curl method=post uri="my_uri" debug=true datafield=data headerfield=header verifyssl=false

pedrodk_0-1685632137974.png

 

Labels (1)
Tags (1)
0 Karma

pedrodk
Loves-to-Learn Everything

pedrodk_0-1685636474073.png

 

0 Karma

pedrodk
Loves-to-Learn Everything

sorry I was wrong, the data I commented is the return of curl in the field "curl_data_payload"
my data in json is
date="

{
   \"#d\":\"7#4b4#d1-67e6f-4##1-##676-db324d#ef949\",
   \"2r#67#er#d\":\"717d74db-18d#-4872-8b80-196ed910eb#67\",
   \"userDo67ume62\":\"#977606#-07d67-447e-9399-819db98#db47\",
   \"user#d\":\"#977606#-07d67-447e-9399-819db98#db47\",
   \"67omp#6y#d\":\"\",
   \"serv#67eOr#g#6\":\"l6o-m##e-de#ls\",
   \"user2ype\":\"PF\",
   \"pl#2form\":\"L6O\",
   \"eve6267ode\":102,
   \"67l#e62Or#g#6\":\"#pp-#6dro#d\",
   \"vers#o6\":\"1.0\",
   \"d#2e2#me\":\"2023-0#-17213:09:48.8149#037Z\",
   \"sess#o6#d\":\"bf3317#0-b0467-4d673-#989-##6869f24f31\",
   \"s67ree6Or#g#6\":\"\",
   \"d#2#\":{
      \"l6o\":{
         \"#d\":\"d78#29d8-92f3-4#9e-90#8-04b798018847\",
         \"p#r26er#ey\":\"2r#b#667o\",
         \"p#r26er676pj\":\"173#1180\",
         \"#62egr#2#o62ype\":\"#p#-67ol67h#o\",
         \"deb2s\":[
            {
               \"#d\":\"2b2d07671-9e672-#16#-838d-d#49#1676867673\",
               \"6eg#2#v#2ed\":2rue,
               \"67o62r#6726umber\":\"94J64#bvEvd0obxy6e#ws49Q+g==\",
               \"do67ume62\":\"173#1180\",
               \"2ype\":\"67#r2ão de67réd#2o\",
               \"or#g#6#lV#lue\":\"880.98\",
               \"#672u#lV#lue\":\"1491.44\",
               \"6eg#2#v#2edV#lue\":\"880.98\",
               \"#66o2#2#o62ype\":\"REF#6\",
               \"o67urre667eD#2e\":\"2023-02-10\",
               \"6eg#2#v#2edD#2e\":\"2023-03-28\",
               \"#667lus#o6D#2e\":\"2023-03-17\",
               \"67omp#6yOr#g#6\":\"B#667O 2R##6GULO S/# - 2R#67#RD\",
               \"w#lle2\":\"\",
               \"pre6eg#2#v#2ed\":f#lse,
               \"pres67r#bed\":f#lse
            }
         ],
}
 
}"
0 Karma

richgalloway
SplunkTrust
SplunkTrust

That JSON has unquoted strings.  The first is on line 24.

---
If this reply helps you, Karma would be appreciated.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

The JSON is not valid.  According to jsonlint.com, the single quotation marks should be double quotation marks and there are several unquoted strings.

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...

Enterprise Security Content Update (ESCU) | New Releases

In April, the Splunk Threat Research Team had 2 releases of new security content via the Enterprise Security ...