Editor #4
Comments
|
Yup I have a private pet project (just whipped it up on an afternoon) that takes a JSON markup and turns it into s, styled with CSS flexbox. It works good enough, but as I said it was just an experiment so I think I need to polish it up a bit before releasing.
That project was just written in html+jQuery+css and currently i'm looking into other options since using jQuery becomes messy quickly. So far I'm considering react.js and vue.js. I think there are pros and cons for each. Please feel free to jump in and share your thoughts. |
elenduuche
commented
Nov 4, 2016
|
I think you should open it up and get inputs from guys, draw up a roadmap sort of, and then allow guys get to work. |
mathiasrw
commented
Nov 4, 2016
|
I agree with @elenduuche - get it up and out - bad code or not - we all had side projects. Lets get the code awesome tegether. Personally I like ractive.js and vue.js |
|
OK I will try to get it out as soon as possible :) Just want to clarify that it won't be a fancy "drag and drop editor" right out of the box. I'm talking more on a foundational level. There are a lot of things involved in this technology, such as json-to-html renderer, json templating, and maybe even server-side rendering. I will try to break them down to pieces and start releasing them one by one as library, each one will build on top of another via require. When all these are combined, it will be easy to just require them and build a drag-and-drop editor. Anyway, I will keep you posted. Stay tuned! |
|
Just had a conversation on HN thread and thought this was interesting. Posting here for future reference https://news.ycombinator.com/item?id=12880704
|
mathiasrw
commented
Nov 8, 2016
•
|
Is the interface builder this one? https://developer.apple.com/xcode/interface-builder/ I looks awesome. I would never start there if I was not familiar to IB. Please post here if you release your test project in a new repo. |
booc0mtaco
commented
Nov 8, 2016
|
@gliechtenstein I humbly suggest giving json-editor a look. I'm working on a different project and built a schema for a JSON input type, using the schemas this tool uses. I could help write up the schema for JASON, and you get all the functionality that's listed in this plugin for free. Of course, like all OSS work, it could be forked or changed to support your needs here. :) Thoughts? check out the demo of json-editor! Something like this could be used with any of the other mentioned approaches (electron app, hosted web app, etc.) |
|
@booc0mtaco this is a cool approach! Would this mean, with just a schema we could:
I'm especially curious about the nested part--that would be cool to create a complex layout just using the schema |
booc0mtaco
commented
Nov 8, 2016
|
@gliechtenstein Exactly. With a good schema-based editor, you can also make inflexible values (those operating as You could also lock the schema updates to each release. This would automatically provide validation for changes, and expose interface for new/updated features. Just a few ideas. |
thedumbtechguy
commented
Nov 9, 2016
•
|
@booc0mtaco a schema is definitely needed. The work would be appreciated! This would allow people to be able to even validate their Json before publishing |
|
I agree that this would be great, the validation feature sounds great and is something we need. I can imagine this tying into documentation someday in the future. It would be awesome if someone creates this. I personally won't have resources at the moment to work on this but you are super welcome to build it and share with us! At least a primitive version would be great to get going. |
booc0mtaco
commented
Nov 10, 2016
|
@gliechtenstein @frostymarvelous I'll try to carve out some time in the next few weeks to take a stab at it. Will let you know the results! |
|
@booc0mtaco looking forward to it! |
booc0mtaco
commented
Nov 16, 2016
|
FYI, on this one... I've seen a lot of stuff that would cause flux in a schema editor. Is there some documentation that annotates all of the functionality so far? On issues opened recently, I've noticed a growing list of Once we have a workable schema, it would be much easier to update it with feature additions :) And an editor that consumes it would automatically work with the updated schema file. |
|
@booc0mtaco Here's the documentation https://jasonette.github.io/documentation/ To clarify, most of the API specs are in the documentation (with exception of some undocumented ones which are sometimes intentionally left out for various reasons) and while you're right that it will keep growing, I doubt that they will grow in a way that will break anything. There have been some discussions on adding "advanced" attributes (example: #43) but these are "advanced" features and I doubt we will change much about existing APIs. I still do think it would be useful to have some sort of schema, and I think the whole point of having a schema is to have a versionable way to maintain and document the APIs, so I think it's even more valuable even when we consider that the API will have more additions in the future. Also, I already have lots of apps running on this exact API and they are working just fine. I designed the API based on my actual usage and not based on an esoteric philosophy about how things should work so I strongly doubt there will be situations in the future where we find out something doesn't work with the current grammar and will need to overhaul. The last factor in this is I'm currently working an Android version based on the existing API. This means it would be foolish to try to overhaul the existing API when it's working just fine. We've covered pretty much all kinds of mobile UI use cases with the current API and I spent a couple of months just documenting and writing examples for the API, and the result is I am confident we don't need to change much (except for adding more advanced features, but will make sure these don't break anything) Bottom line, at this point I don't think we need to worry much about the potential risk in the future API changes. Hope this makes sense. Let me know what you think :) |
booc0mtaco
commented
Nov 17, 2016
|
@gliechtenstein sounds great! I hadn't pored thru the existing API, so from my view, the issues were about new and exciting things appearing :-) Thanks for the clarity. (RE: "undocumented" API parts, an editor app wouldn't expose options to add those, but an enterprising dev could take the JSON it outputs, and go crazy if they wish). All that being said, I think we might be good to go then. I may host something like http://jeremydorn.com/json-editor/ on my own site, just to see how people like it. If there's appetite, taking that and building a Electron App might be an option, or hosting something similar directly from a JASONETTE page might also be suitable. Thoughts? |
|
@gliechtenstein @booc0mtaco I can help if a repo gets made :) |
|
@booc0mtaco Sorry! i totally missed the last comment, my fault. I think this sounds great. And thanks for resurfacing this @lukeramsden |
|
@gliechtenstein (☞゚ヮ゚)☞ |
booc0mtaco
commented
Jan 3, 2017
|
New year; new ambitions! I'll get the ball rolling on this by the weekend crosses fingers. @lukeramsden keep an eye out for a new repo. I'll probably take the approach from my last comment, and host a github page to get MVP for this. |
|
@booc0mtaco Looking forward to it! |
booc0mtaco
commented
Jan 3, 2017
|
@booc0mtaco Thinking about it, wouldn't it be better to be under the Jasonette organization? Maybe you could transfer it (you'd have to talk to @gliechtenstein) over? Also, make sure you're in the slack channel, its the usual place for discussions. |
booc0mtaco
commented
Jan 3, 2017
•
|
@lukeramsden probably so (noticed it was an org as I was referencing it in the README). For now, I'll leave this repo alone, jump into y'alls channel, and see what makes sense :) I can imagine several approaches to this, so IMO not sure if we want to commit to any particular one officially (pardon the pun!). I've somehow managed to not use slack yet EDIT: a transfer should be possible, no? another thing to discuss later on |
|
It's very simple, I'm sure youll figure it out. I'm lukeramsden, @gliechtenstein is ethan |
|
@booc0mtaco yeah please join slack! Looking forward to this :) |
mathiasrw commentedNov 4, 2016
Any plans to open a repo where people can contribute with code to an drag-and-drop kind of editor of the JSON for Jasonette?