Jump to content
Simulton Community
Sign in to follow this  

Recommended Posts

There is xml  but the poor JSON is left alone out of simulton.... Would be a good adition, especially if combined to web technologie (RESTful api, websocket) to automatically process their outputs!

Share this post


Link to post
Share on other sites

True - that's something that is definitely in the pipeline.

I think we'll have to add a new data type for this that can naively represent a JSON object and convert it to and from string.\

 

What kind of blocks would you expect to have as an MVP?

Share this post


Link to post
Share on other sites

I'm mostly thinking of a block that can input a string and convert it as a JSON object. Also maybe a block that can create a JSON Object from a dynamic number of input?

 

Then when we have JSON object, having blocks that can manipulate it: 

  • retreiving data from key
  • modifying data from key
  • saving the JSON object into file

 

 

Share this post


Link to post
Share on other sites

We started working on this. So far we have the following blocks:

  • From String: Create a JSON object from a string
  • To String: Dump a JSON object into a string
  • From File: Load a JSON object from a file
  • Find: Perform key look-up
  • Count: Count number of occurrences of a particular key
  • To Map: Convert to a map data structure
  • To Array: Convert to an array data structure

 

Now we're gonna add the necessary block(s) to modify/write/insert values into a JSON object.

And if everything goes well we have a first public version of this by the end of the week 🙂

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...