jmespath / jmespath/jmespath.site

JSON Transformation fails when expression has static string and JSON Path formatted more than a single line

Open
#72 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Makefile
Stars
61
Forks
61
PR merge metrics
No merged PRs in 30d

Description

Hi,

My Data is
{
"title": "title1",
"description": "description1",
"blog": "This is a blog.",
"date": "11/4/2013"
}
My Expression is
{
"data":{
"date":date,
"text":blog
},
"name":title,
"description":description
}

It is not working since the expression is formatted and has \r\n.

If I give expression as single line minified, It works.

Can you advise how to work with formatted expression that has JSON Path and static string to transform a valid JSON.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.