jmespath.py icon indicating copy to clipboard operation
jmespath.py copied to clipboard

substring support

Open orsigiorgio opened this issue 7 years ago • 2 comments

This is a feature request:

can we use jmespath to perform a substring on a string field?

I am thinking something like this:

Input:

{
  "foo": "someString"
}

substring(0,4,foo) -> 'some'

orsigiorgio avatar Aug 21 '18 17:08 orsigiorgio

I'd recommend copying this into https://github.com/jmespath/jmespath.jep/issues

jameswilson avatar May 18 '20 14:05 jameswilson

Looks like this request went in as "slice" instead, but basically the same thing: https://github.com/jmespath/jmespath.jep/issues/5

jameswilson avatar Jun 01 '20 16:06 jameswilson