User Controls

Poll: Choices

JSON

  1. #1
    Misterigh Houston
    I know little about JSON.

    My server accepts a integer variable and I'm just messing around with it trying different little things for fun. The only valid integer is 100, otherwise I get a Bad Request message. If I try sending the HTTP request with 50+50, I get

    Unexpected character ('+' (code 43)): was expecting comma to separate OBJECT entries


    So I tried (50+50) but I get

    Unexpected character ('(' (code 40)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')


    To make things fun, I'm not going to check my server-side code and I'm going to try to manipulate things from my HTTP requests.

    When I try 100/ I get

    Unexpected character ('\' (code 47)): maybe a (non-standard) comment? (not recognized as one since Feature 'ALLOW_COMMENTS' not enabled for parser


    What should I try?
  2. #2
    Lanny Bird of Courage
    A Json parser doesn't accept arithmetic, it's just a literal syntax. There's not a whole lot you can really do with it.
Jump to Top