Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation of JSON expression representation #3

Closed
kubaPod opened this issue Mar 25, 2020 · 4 comments
Closed

Documentation of JSON expression representation #3

kubaPod opened this issue Mar 25, 2020 · 4 comments
Labels
documentation Improvements or additions to documentation

Comments

@kubaPod
Copy link

kubaPod commented Mar 25, 2020

value — The new value of the variable in JSON expression representation (see below).

There's nothing below that explains it.

Additionaly setDynamicModuleVariables works with value : "True" which means there's more to say than 'it is ExpressionJSON' because representation of True is "true".

Please make this clear.

@kubaPod
Copy link
Author

kubaPod commented Mar 26, 2020

Temporary notes before documentation is updated.

  • When the value is a string then it will be sent to the server for interpretation as in InputForm input.

  • Otherwise the client side parser is used.
    value: something translates to ImportString["something", "ExpressionJSON"]

The latter method is preferred.

@poeschko
Copy link
Contributor

Small correction: When the value is a string, it is parsed by the client-side parser. That parser has some limitations, and that's why the latter form (proper ExpressionJSON) is preferred.

The value is only sent to the server if it is used in an evaluation that cannot be handled by the client-side evaluator.

We will clarify this in the docs.

@kubaPod
Copy link
Author

kubaPod commented Mar 26, 2020

That is even better!

@poeschko poeschko added the documentation Improvements or additions to documentation label Mar 26, 2020
@poeschko
Copy link
Contributor

poeschko commented Oct 2, 2021

@poeschko poeschko closed this as completed Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants