Forum Discussion

migi's avatar
migi
Occasional Contributor
2 years ago

Hierarchy in a API CALL

Hi i currently have a problem that i can not show certain fields in my API call.

"results":[

          "ID" : 1,

          "Custom_fields"{

                             "Test1": 1,

                             "Test2": "Testing"

 

How can I select the ID and the Test1 under the custom fields part so that it would show the following.

"results":[

          "ID" : 1,

          "Custom_fields"{

                             "Test1": 1,

  • chichepo's avatar
    chichepo
    Champion Level 1

    hi migi 

    Sorry for this late reply.
    I am not sure I get the point here?
    What are you trying to do? 

    • migi's avatar
      migi
      Occasional Contributor

      I have a huge data set with alot of fields i do not need in these kind of hierarchies and i want to limit the amount of useless data im loading in. Thats why i am trying to only select Test1 in Custom_fields.

      • chichepo's avatar
        chichepo
        Champion Level 1

        migi .
        If the properties of your output payload are not required, you don't need to receive it at run time.
        Is that point you meant?