jslt icon indicating copy to clipboard operation
jslt copied to clipboard

how can i get field of an object?

Open gongchangyou opened this issue 4 years ago • 2 comments

if $context is an object .

how can i get the field of it ?

$context.os does not work

gongchangyou avatar Aug 28 '21 04:08 gongchangyou

Please give us more context. What is the input, jstl code etc.

catull avatar Aug 28 '21 06:08 catull

    val jslt = Parser.compileString({"os":$context.os})
   jslt.apply(mapOf("context" to POJONode(Context(os="ANDROID"))),{})

gongchangyou avatar Aug 28 '21 07:08 gongchangyou