Skip to content

Is there any way we can work with custom function output in a "normal" json way? #272

@nilvon9wo

Description

@nilvon9wo

I have some custom functions which I expect to return JToken.

I would like to be able to simply treat these results as if they were embedded json and then use similar notations to get either indexed values or named properties.

Either I'm missing something or this is not presently possible.

As a work around I've implemented methods can return the values I need and this seems to work, but in practice, it reduces the readability of our templates.... I can't help feeling there should be a better way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions