JSON in a JSON

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

Parents Reply
  • 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

Children