GithubHelp home page GithubHelp logo

Comments (2)

maks avatar maks commented on August 18, 2024

Yes, since it's a specific json schema, makes sense to do this.

from documentation.

gliechtenstein avatar gliechtenstein commented on August 18, 2024

I can understand this is meaningful theoretically, but I am not yet understanding how this can be immediately beneficial to anyone in a practical manner at the moment. Maybe if you could share a specific hypothetical scenario where this makes sense, it would help me better understand.

I am asking specifically in the context of what Jasonette is today. Maybe in the future it will grow into something where having its own content-type will be meaningful but today no Jasonette user has problem with the lack of content-type problem. They simply create a separate JSON endpoint for returning the JASON markup and that's that.

Also regarding your comment on "a JASON representation of the same resource", but I am not sure this is the right way to think about this. For example if we think about a typical web app, it consists of Javascript files, CSS files, and an HTML document. When a website loads it makes several requests each with its own content-type (text/css, text/javascript, text/html).

Coming back to Jasonette, the power of Jasonette is it lets you describe equivalents of all of the above in JSON. We describe action (equivalent to text/javascript) in JSON, We describe styles (equivalent to text/css) in JSON, we also describe the view itself $jason.body (equivalent to text/html) in JSON. And on top of that we have mixins which lets you merge all these different formats together, which blurs the line even further. The whole point of Jasonette is there is a single unified markup type that lets you express every aspect of an app. So a content type like application/vnd.jason+json doesn't really do it justice in my opinion.

Overall, I feel like trying to categorize what Jasonette's markup is at this point will only constrain its potential going forward.

But like I said, maybe I'm not seeing what you're seeing. Please let me know if I'm missing something.

from documentation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.