Closed emil14 closed 7 months ago
Create const
node with predefined (empty?) struct and pass it to template
port of genericjsonParse<T>
component with bytes to data
port.
const.struct = {x:42}
const.struct -> jsonParser
inports.bytes -> jsonParser
jsonParser.out -> outports.struct
It seems to be a synchronous approach - we don't parse data peace by peace
In Go it's possible to pass pointer to function that takes
interface{}
likejson.Unmarshal
:How to do this in FBP where we don't have pointers?
NOTE: this is
fundamenal
since almost any program gets its input from outside asbytes