Sumith Rajagopalan
Posts: 0
Joined: Sat Aug 04, 2012 1:27 pm

Parse.com | Send number in request as number type and not string type

Trying to use parse.com.
Tiggzi: Input field which accept only numbers
Parse.com: Class with field type set to number

When I test the API by entering a number in the number field, I get the response
Server response:
{
"error": "invalid type for key balance, expected number, but got string",
"code": 111
}

How do I make sure that the number value entered is sent as number and not as a string?

Sumith Rajagopalan
Posts: 0
Joined: Sat Aug 04, 2012 1:27 pm

Parse.com | Send number in request as number type and not string type

That helps in execution. Thanks.

How do I test the API? I cannot enter javascript in the test window.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Parse.com | Send number in request as number type and not string type

It's not possible to do this when testing, but it works when you run the service. We will add the ability to specify data types in our new HTML5 app builder in the fall.

Return to “Issues”