Skip to content

This is a question on forming a template #95

@rob2701

Description

@rob2701

Hello, this is a question on forming a template.

My input is :
termMarks is an array and its value can change, can be just 1 or a maximum of 4

{
"id" : "123",
"subject": [{
"name": "math"
"termMarks": [
"test1","test2","test3"
]
}]
}

Desired Output for above input :
{
"id": "123"
"terms": [
{}, {},{}
] }

Basing on the size of the termMarks array my output json should change. In the above input my "termMarks" size is 3 so I wanted the "terms" array in the output to be 3.

can someone help with a template

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions