-
Notifications
You must be signed in to change notification settings - Fork 17
Closed as not planned
Closed as not planned
Copy link
Labels
enhancementNew feature or requestNew feature or request
Description
Hi there,
This is pretty:
{
"employees": [
{
"id": 213,
"name": "franc",
"another": [[{"abc": "test"}, {"xyz": "nnnbbbbbbbbbbbbbbbb"}]] // this is perfectly inlined
}
]
}With longer xyz, it becomes this (which is not what i wanted)
{
"employees": [
{
"id": 213,
"name": "franc",
"another": [
[{"abc": "test"}, {"xyz": "nnnbbbbbbbbbbbbbbbbbbbbbbbbbb"}] // becomes 3 lines with longer 'xyz', not good but still ok
]
}
]
}With even longer xyz:
{
"employees": [
{
"id": 213,
"name": "franc",
"another": [
[
{"abc": "test"},
{
"xyz": "nnnbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" // not pretty anymore
}
]
]
}
]
}With above longest example, what i expected:
{
"employees": [
{
"id": 213,
"name": "franc",
"another": [[{"abc": "test"}, { "xyz": "nnnbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb" } ]]
}
]
}Can this be done by adding options to ignore value length for same layout when PPrint? or maybe add options to PPrint by indent levels?
Thank you, for the great tool.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request