Skip to content

Error recieved with example input  #2

@Ragnarnw

Description

@Ragnarnw
./hall_request_assigner --input '
{
    "hallRequests" : 
        [[false,false],[true,false],[false,false],[false,true]],
    "states" : {
        "one" : {
            "behaviour":"moving",
            "floor":2,
            "direction":"up",
            "cabRequests":[false,false,true,true]
        },
        "two" : {
            "behaviour":"idle",
            "floor":0,
            "direction":"stop",
            "cabRequests":[false,false,false,false]
        }
    }
}'
jsonx.JsonException@d-json/jsonx.d(614): Expected {, saw 

----------------
d-json/jsonx.d:104 pure @safe void jsonx.enforceChar!(immutable(char)[]).enforceChar(ref immutable(char)[], char, bool) [0x4ef1c6]
d-json/jsonx.d:305 main.Input jsonx.jsonDecode_impl!(main.Input, immutable(char)[]).jsonDecode_impl(ref immutable(char)[]) [0x4eef7b]
d-json/jsonx.d:58 main.Input jsonx.jsonDecode!(main.Input, immutable(char)[]).jsonDecode(immutable(char)[]) [0x4eeef0]
main.d:34 _Dmain [0x4c2688]
??:? _D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv [0x4fcab2]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) [0x4fca08]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll() [0x4fca6e]
??:? void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate()) [0x4fca08]
??:? _d_run_main [0x4fc965]
??:? main [0x4d7e2f]
??:? __libc_start_main [0x710630b2]

Reproducible with both exectubale from "releases" and by building hall_request_assigner from build.sh. Input is copied straight from "example input" in README.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions