jmespath / jmespath.py

JMESPath is a query language for JSON.
http://jmespath.org
MIT License
2.19k stars 181 forks source link

substring support #167

Open orsigiorgio opened 6 years ago

orsigiorgio commented 6 years ago

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'

jameswilson commented 4 years ago

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

jameswilson commented 4 years ago

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