Thursday, December 19, 2019

Announcing JSwan - easy JSON support for Grasshopper

Andrew Heumann, creator of human, Human UI, and MetaHopper, announced the release of jSwan to provide JSON serialization/deserialization for Grasshopper.

What is JSwan? JSwan is a set of Grasshopper components for working with JSON-formatted data. It’s designed to work intuitively with Grasshopper’s component logic and data structures. And it is open source. You can find the source and the documentation at 19.

JSON, Java Script Object Notation, is a lightweight format for storing and transporting data. It's often used when data is sent from a server to a web page. There are many reasons why you might use a JSON format inside Grasshopper. Here are a few:
  • Interacting with the web: data from web services or APIs is often received or sent in JSON format.
  • Translating Grasshopper/Rhino formatted geometry into a structured format any program can understand. C#, JavaScript, Python, and most other languages can read and author JSON data.
  • Object Oriented Grasshopper. Construct custom object types by encoding them in JSON. Build your own reusable clusters that grab their relevant properties, rather than passing around many parallel data streams.

No comments: