Forum Discussion

karelkremel's avatar
karelkremel
Occasional Contributor
8 years ago

how to do transfer property from JSON without brackets?

in property transfer step i'm using jsonpath to extract a value from response

$.entities[-1:].id

and exporting it to the property on testcaselevel

but instead of getting a value like 123456 i'm getting [123456]

is there a way how to do the property transfer without brackets? 

sure i can remove it later, but why should i?

  • nmrao's avatar
    nmrao
    Champion Level 3
    Try
    $.entities[-1:].id[0]