The main purpose of this PR is to remove as many JSON string (de)serializations steps as possible.
To this end:
specifications are no longer serialized to strings when passed into the Deno runtime. Instead they are converted from serde_json::Value directly to JavaScript objects.
Vega specification are no longer converted to strings when returned from the Deno runtime, instead they are returned as serde objects.
The Python vega*_to_* functions now accept either strings or Python dictionaries
The Python vegalite_to_vega function now returns a Python dict rather than a JSON string.
Additionally, I added an integration test suite for the vl-convert CLI application
The main purpose of this PR is to remove as many JSON string (de)serializations steps as possible.
To this end:
serde_json::Value
directly to JavaScript objects.vega*_to_*
functions now accept either strings or Python dictionariesvegalite_to_vega
function now returns a Python dict rather than a JSON string.Additionally, I added an integration test suite for the
vl-convert
CLI application