I am trying to add JSON object inside a JSON object but the generated JSON is not in the correct format. The child json is in double quotes.
How can I get rid of these double quotes? Can someone help me with a correct substitute() function command?
Discussion posts and replies are publicly visible
Are you trying to generate it via Appian expressions?
Hey Harshit, I am working under expression mode and below is what I wrote to achieve
local!dataPerfect:a!toJson( {"testifact_info":a!toJson( {"testsuite_name":local!testSuiteName, "testsuite_owner":local!testSuiteOwner, "testsuite_description":local!testSuiteDescription, "test_report_path":local!testReportPath, "variable_map_external": local!variableMapPath, "object_map_external":local!objectMapPath }) } ),
and then I am printing the dataPerfect variable in a richtext block
For me, it is generating a valid JSON. You can try validating your JSON here - jsonformatter.curiousconcept.com/
Thanks Harshit! I figured out another way
puneetk0004 can you please share how did you fixed it? I am facing same issue.