bakerface / jex

Json EXpressions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON EXpressions

{
  "do": [
    { "create": "simple expressions",
        "how": [ "quickly", "easily" ] }
    { "combine": "simple expressions",
        "to": { "create": "complex expressions" } },
    { "use": "complex expressions",
        "to": { "define": "business logic",
                  "how": "in a platform independent way" } },
  ]
}

# { true: null } - return without error
# { false: null } - return with a generic error
# { error: { } } - return with a specific error
# { if: { }, then: { }, else: { } } - conditional expression evaluation, one time
# { while: { }, do: [ ] } - conditional expression evaluation, zero or more times
# { do: [ ], while: { } } - conditional expression evaluation, one or more times
# { delay: 0 } - idle for the specified time, in milliseconds
# { timeout: { }, milliseconds: 0 } - time-limited expression evaluation

About

Json EXpressions

License:MIT License


Languages

Language:JavaScript 100.0%