locked
Order of key:value pairs in JSON matters or not? RRS feed

  • Question

  • User1121128150 posted

    Hi

    When I do a HTTP PUT request with JSON in the HTTP Body into a web api, is the order of the data sent in of importance?

    I,e if my model has firstName defined before lastName do I have to make sure my JSON sends first name before lastName in the JSON data or it does not matter since they are named key : value pairs?

    M

    Sunday, July 3, 2016 10:03 AM

Answers

  • User36583972 posted

    Hi mattdouhan@outlook.com,

    I,e if my model has firstName defined before lastName do I have to make sure my JSON sends first name before lastName in the JSON data or it does not matter since they are named key : value pairs?

    You do not need to Order of key:value.

    Best Regards,

    Yohann Lu

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, July 4, 2016 3:02 AM