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

Add a Json to Specification object converter #39

Open
alelom opened this issue Mar 24, 2022 · 0 comments
Open

Add a Json to Specification object converter #39

alelom opened this issue Mar 24, 2022 · 0 comments
Labels
type:feature New capability or enhancement

Comments

@alelom
Copy link
Contributor

alelom commented Mar 24, 2022

Currently, any Json data containing a Specification or a Condition and that adopts the Json-schema described in the repo:
https://github.com/CIHDigitalConfigurator/CIH_Specifications_Schema

can be read using the BH.Engine.Serialisation.FromJson() method. However, the returned object is always a CustomObject, and some manual adjustment is needed to convert it to a C# Specification or Condition:

2022-03-24 12_05_25-

Implement a custom deserialiser to solve this.

@alelom alelom added the type:feature New capability or enhancement label Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New capability or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant