[SERVER-13161] jsonp interface outputs strict JSON format rather than Javascript JSON format Created: 12/Mar/14 Updated: 07/Jul/17 Resolved: 07/Jul/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | HTTP Console |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Trivial - P5 |
| Reporter: | Shaun Verch | Assignee: | DO NOT USE - Backlog - Platform Team |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL | ||
| Steps To Reproduce: | Start mongod with rest and jsonp:
Navigate to page using jsonp:
You can tell the JSON is in strict mode, because the dates are represented using objects with "$date" rather than the Javascript "Date" object. |
||
| Participants: |
| Description |
|
Based on http://docs.mongodb.org/manual/reference/mongodb-extended-json/, the "Javascript" mode is for jsonp, but jsonp actually uses "strict" mode. |