1

I am using karate 0.9.4 and I have been trying to set json payload which has a nested array in it. For example I am trying to this :

* set foo

      | path   | value   |
      | bar    | 'baz'   |
      | a[0].b | 'ban'   |
      | a[0].c | 'abc'   |
      | a[1].b | 'def'   |

However, the result is


{
  "bar": "baz",
  "a": [
    {
    }
  ]
}

Is there something wrong here?

0

1 Answer 1

1

Simplify it for now please:

* set foo
  | path   | value   |
  | bar    | 'baz'   |
  | a[0]   | { a: 'ban', c: 'abc' } |
  | a[1]   | { b: 'def' }           |
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.