I think his is an issue with web2py and mongo db and combo. When using mongodb as application's database the primary key is for some docment look like this in monogdb- *26985031207145552773431411972*. While in mongoDB it's value is something like- 57317ea0f804663444afc504.
*Now the problem is*- When i am sending in response a row with having id in json format,While parsing this JSON in Javascript it converts this id to it's scientific notation which is something like *"* *2.7013073652338503e+28". *Wchich now we can't use for a reference. for ex. <script>itemID=JSON.parse('response of the request').['SomeRow'][0]['id]; </script> here itemID varaible will not be equal to *26985031207145552773431411972 and rather **2.7013073652338503e+28** . * So i can't send this itemID back to server for any further need. ex. "Veg Main Course":[ 1. { - "category":27013046129796342702616905670, - "description":"", - "price":100.0, - "is_active":true, - "id":27013073652338500677267916755, - "disabled":null, - "sales_count":null, - "image":"", - "name":"Aloo 65" } 2. will convert to JS eval - 3. "Veg Main Course":[ 1. { - "category":*2.7013046129796345e+28,* - "description":"", - "price":100, - "is_active":true, - "id":2.7013073652338503e+28, - "disabled":null, - "sales_count":null, - "image":"", - "name":"Aloo 65" }, Any suggestion for this ?? Can i use something else or does web2py have a solution for it.. ?? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.