mohsen1 / json-formatter

Angular directive for collapsible JSON in HTML
http://azimi.me/json-formatter/demo/demo.html
Other
372 stars 85 forks source link

When Date object is given, json-formatter only shows result as "Date". #69

Open Anurag9589 opened 6 years ago

Anurag9589 commented 6 years ago

I have consumed this formatter and returning JSON data to client from sever which is generated dynamically i.e. ExpandoObject. Date is coming at the client but json-formatter could not able to display it in string, if I convert the date object in string it works but when I give other input in a same way it works like number,string or any complex object as given on demo site ( shown in below image). image

please check the issue, as we can see in image Date is not shown, it shows only the name of Date object.

json-formatter