0

I want to add some data to order api using extension attributes. I know I can create an interface for the object I will use. But the object has variable depth. And the key names also varies. For example:

[
    "key" => [
        "key2" => [
            "test" => "test value",
            "test2" => "test 2 value",
        ],

        "key3" => [
            "test" => "test value",
            "test2" => "test 2 value",
        ],
    ],
    "keyN" => "some string"
]

How can I do that?

Thanks in advance.

  • I guess there is no way to do that... – iskorum Sep 5 at 9:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.