Skip to content

Json Payload #57

@devnacho

Description

@devnacho

Hi @wookay,

I've updated to 0.4.1 but when receiving a JSON payload, it seems like the payload is not being parsed correctly. I followed this example https://github.com/wookay/Bukdu.jl/blob/master/examples/rest/ex2.jl

The JSON payload is something like this:

{
   "simulation":{
      "id":5927,
       "withdrawal_strategy_frequency": 1
   }
}

and it is being parsed to this type

Assoc(Pair{String,Any}["simulation"=>(id = 5927, withdrawal_strategy_frequency = 1))]

Instead of something like:

(simulation = (id = 5927, withdrawal_strategy_frequency = 1)))

Is there any reason why it might happen this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions