Painless script to jsonify

I have index with http response body stored as string json, is it possible to treat json as string to json to read as json using json path.

You can use most Java functions in Painless, but this is really not recommended. If you want to do processing on a field of that size, please use Logstash or Ingest Pipelines as this can be a really costly operation.