Python JSON Parser
Budget: €18 – €36 EUR
Hi,
i started an project to validate JSON Documents with own Rules. So for that i tried to create an own Domain specific language in JSON such like:
Element "test1" {
Cardinality: "1-1"
Attribute "code" {
Type: "String"
Value: "AT"
Cardinality: "0-1"
AllowedValues: ["AT", "DE", "CH"]
}
}
I tried to make in JSON the rule that an element called "test1" is required as you can see cardinality is 1-1, then the element has an child attribute wich should be called "code" this attribue has also an value wich can be one of these in allowedvalues. Cardinality and allowedvalues are things i defined in my dsl there are a lot more for groups, choice, namespaces, booleans, order. So my idea is to create an DSL to be able to create all possible template i want. My other system creates during running json / xml documents wich then should get validated if the rules are all matched wich i defined here. The validation i want make with c++. So each rule in my JSON should have an according C++ Code Snippet and the python parser wich you should code, should check the template, then take the right C++ Code and compile it to an exe wich is then validating any json file according to this ruleset(template). The C++ codesnippets are in progress and if you dont familar with it this can handle an dedicated C++ coder too. What i want from you is the python parser and taking right C++ Snippets wich i define.
The core questions we need discuss are:
- Is JSON the right language to build the language or should we switch to an completely different one, or even create own one?
i started an project to validate JSON Documents with own Rules. So for that i tried to create an own Domain specific language in JSON such like:
Element "test1" {
Cardinality: "1-1"
Attribute "code" {
Type: "String"
Value: "AT"
Cardinality: "0-1"
AllowedValues: ["AT", "DE", "CH"]
}
}
I tried to make in JSON the rule that an element called "test1" is required as you can see cardinality is 1-1, then the element has an child attribute wich should be called "code" this attribue has also an value wich can be one of these in allowedvalues. Cardinality and allowedvalues are things i defined in my dsl there are a lot more for groups, choice, namespaces, booleans, order. So my idea is to create an DSL to be able to create all possible template i want. My other system creates during running json / xml documents wich then should get validated if the rules are all matched wich i defined here. The validation i want make with c++. So each rule in my JSON should have an according C++ Code Snippet and the python parser wich you should code, should check the template, then take the right C++ Code and compile it to an exe wich is then validating any json file according to this ruleset(template). The C++ codesnippets are in progress and if you dont familar with it this can handle an dedicated C++ coder too. What i want from you is the python parser and taking right C++ Snippets wich i define.
The core questions we need discuss are:
- Is JSON the right language to build the language or should we switch to an completely different one, or even create own one?