musacivak / rock-php

Automatically exported from code.google.com/p/rock-php
0 stars 0 forks source link

escaped and extra space added to JSON document values. #223

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I insert the following JSON document in the text box:
{
   "id": "90c41d04-7404-43f1-a6e3-ceae3e7deea4",
   "server_url": "http://example.com/dir" 
}

When I display the content, I have:
{
   "_id": ObjectId("50578430ded7cad13c000000"),
   "id": "90c41d04-7404-43f1-a6e3-ceae3e7deea4",
   "server_url": "http: \/\/example.com\/dir" 
}

The expected display content is:
{
   "_id": ObjectId("50578430ded7cad13c000000"),
   "id": "90c41d04-7404-43f1-a6e3-ceae3e7deea4",
   "server_url": "http://example.com/dir" 
}

Note the "server_url" field has an extra space after http and the '/' are 
escaped.

RockMongo Version 1.1.2

Operation System OS X 10.7.2

PHP Version 5.4.4

php_mongo Version 1.2.6

MongoDB version 1.8.3

Original issue reported on code.google.com by edouard....@gmail.com on 17 Sep 2012 at 8:23

GoogleCodeExporter commented 8 years ago
extra space have been removed in 1.1.4, download it 
here:http://rockmongo.com/downloads

Original comment by iwind....@gmail.com on 1 Dec 2012 at 12:33