Recreated the hole JSON generation process for the preview plan in the webclient to object based layout