GitHub user zentol opened a pull request:
https://github.com/apache/flink/pull/6274
[FLINK-9771][rest] Fix plan JSON response
## What is the purpose of the change
This PR fixes the JSON plan display in the UI. The returned JSON did not
conform to the expected format `{plan:<json_plan>}` and only returned the JSON
plan as is.
Furthermore the `JobPlanInfoTest` was modified to not manually create JSON,
as it wasn't representative of reality due to contained spaces after commas.
## Verifying this change
Manually verified.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zentol/flink 9771
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/6274.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #6274
----
commit f232def0052f189958f60f3cb53efb527542cf3f
Author: zentol <chesnay@...>
Date: 2018-07-06T09:22:20Z
[FLINK-9771][rest] Fix plan JSON response
----
---