project-flogo / core

Flogo Core is the core flogo library used create and extend Flogo applications.
BSD 3-Clause "New" or "Revised" License
109 stars 55 forks source link

Unmarshalling Go object from byte array #228

Closed lixingwang closed 4 years ago

lixingwang commented 4 years ago

What kind of change does this PR introduce? (check one with "x")

[] Bugfix
[] Feature
[] Code style update (formatting, local variables)
[] Refactoring (no functional changes, no api changes)
[*] Other... Please describe: Code optimize

Fixes: #

What is the current behavior?

  1. Today we unmarshal Go Object from either string to an interface which requires conversion if it is an array of byte
  2. Additional scope created which has been created.

What is the new behavior?

  1. Unmarshal Go object from the byte array
  2. Avoiding to create a duplicate scope.