Bug 497494 - Need to create New Wizard for creating JSON files
Summary: Need to create New Wizard for creating JSON files
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.json (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Nick Sandonato CLA
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2016-07-07 10:29 EDT by Ilya Buziuk CLA
Modified: 2016-10-09 10:23 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Buziuk CLA 2016-07-07 10:29:16 EDT
There are now wizards for bower init / npm init (creating bower.json / package.json) but no wizard for creating custom json file.
Comment 1 Mickael Istria CLA 2016-07-07 11:31:09 EDT
I'm not convinced by the value of having a wizard for plain JSON file. What should it do that the default New Wizard file doesn't?
If there were support for some JSON Schema, we could generate a minimal file respecting the grammar, but at the moment, I fail at seeing how such a wizard can be useful.
Comment 2 Angelo ZERR CLA 2016-07-07 14:43:46 EDT
I agree with Mickael, but I think WTP JSON should provide the same wizard than WTP XML :  : 

 - first page: choose container and file name.
 - second page: display 2 radios:
      - [1] Create JSON file from an JSON schema file
      - [2] Create JSON file from a JSON template
 - 3 page:
      - Select JSON Schema file (if [1] is selected) (with "Select file from Workspace" and "Select JSON Catalog entry" options)
      - Select JSON Template (if [2] is selected).
Comment 3 Arian Fornaris CLA 2016-07-07 15:20:51 EDT
- I use to look into the New Wizards to see what Eclipse supports and I think it is good to highlight that Eclipse supports json.

- Look into the New JavaScript File wizard, it is just the same as the New File wizard. And the content of the new file is just an empty comment (that I am pretty sure many people remove). In the case of the JSON new file, it can starts with an empty object "{ }".

- With a JSON wizard you can create a JSON file with any extension and open it in the JSON editor, or just enter the name of the file and the `.json` extension is added automatically, like the JS wizard does.