Rules serialization to/from JSON #261
Replies: 6 comments 6 replies
-
A challenge with JSON serialization is that many users that want to store rules in a datastore are probably also wanting to write them outside of Visual Studio in some way. I think the actual JSON format would be heavily influenced by how they want to do that. A limited front end would work well with any format, but anything more fully featured might demand a bespoke serialization format. But I think out of the box support would still be nice as it would be less overwhelming for people to make their own front ends on top of the standard JSON format. Having first class support for JSON serialization in NRules would also be a first step towards allowing serialization and reuse of compiled rete networks I think too which if fast enough would be great for large rule sets, irrespective of how those rules are written. |
Beta Was this translation helpful? Give feedback.
-
This would be game changer for me. Any ETA? |
Beta Was this translation helpful? Give feedback.
-
@snikolayev Should we look to use that branch still or is it close to being merged in? |
Beta Was this translation helpful? Give feedback.
-
@rlightner it’s taking a bit longer than I originally anticipated. Will merge it in the nearest future, but it’s not merged yet. So you can indeed use the feature branch in the meantime. |
Beta Was this translation helpful? Give feedback.
-
Merged JSON serialization feature to develop branch: #284 |
Beta Was this translation helpful? Give feedback.
-
Released in https://github.com/NRules/NRules/releases/v0.9.3 |
Beta Was this translation helpful? Give feedback.
-
Started working on a spike for ability to serialize rules to/read from JSON. I wanted to use this discussion to gauge interest around this feature.
https://github.com/NRules/NRules/tree/feature/serialization-json
Beta Was this translation helpful? Give feedback.
All reactions