tinkerpop/rexster — Issue #176: JSON Requests Not Handling Data Type
Author: espeed
Created: 2011-11-06 12:35:34+00:00
State: open

If a property is stored as an integer, it's returned as an integer in the JSON response...

```bash
$ curl http://localhost:8182/graphs/tinkergraph/vertices/1
{"version":"0.7-SNAPSHOT","results":{"name":"marko","age":29,"_id":"1","_type":"vertex"},"queryTime":0.356802}
```
However, you POST a JSON request with an integer datatype (e.g. age), then evidently it doesn't store it as an integer because it comes back as a string....

```bash
$ curl -H "Content-Type: application/json" -X POST -d '{"name":"James", "age":34}' http://localhost:8182/graphs/tinkergraph/vertices
{"version":"0.7-SNAPSHOT","results":{"name":"James","age":"34","_id":"111","_type":"vertex"},"queryTime":0.414374}
```

Is this suppose to work?