[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:

mongod --rest --jsonp

Navigate to page using jsonp:

http://localhost:28017/_status?jsonp=true

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.


Generated at Thu Feb 08 03:30:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.