Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005816opensim[REGION] Script Functionspublic2011-12-11 21:372014-07-29 13:40
Reporterotakup0pe 
Assigned Tonebadon 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Versionmaster (dev code) 
Target Versionmaster (dev code)Fixed in Version 
Summary0005816: osParseJSON Decoding Problems
DescriptionosParseJSON uses hand-crafted decoding that has two issues
* does not seem to handle top-level JSON lists
* does not seem to handle unicode text

Attached patch makes use of OSDParser to decode JSON in a more organized fashion. New OSSL function osParseJSONNew will return either a Hashtable or ArrayList. osPArseJSON still exists but will force the ArrayList into a Hashtable with the Key being a integer.
TagsNo tags attached.
Git Revision or version number3a91085ac2364c80b53275886c8130a4b1f0e62f
Run ModeStandalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim)
Physics EngineBasicPhysics
EnvironmentMono / Linux32
Mono VersionOther
Viewer
Attached Filesdiff file icon opensim-osparsejsonnew.diff [^] (13,764 bytes) 2011-12-11 21:37 [Show Content]

- Relationships

-  Notes
(0020499)
otakup0pe (developer)
2011-12-11 21:44

This is the script I used to test osParseJSONNew. It's C# and when dropped in a prim / clicked will display the worldwide twitter trends.

https://gist.github.com/1457112 [^]
(0020500)
nebadon (administrator)
2011-12-11 22:27

applied in git hash : 8ae824ff095605c5889828503cec09006ac07cc0

http://opensimulator.org/viewgit/?a=commit&p=opensim&h=8ae824ff095605c5889828503cec09006ac07cc0 [^]

- Issue History
Date Modified Username Field Change
2011-12-11 21:37 otakup0pe New Issue
2011-12-11 21:37 otakup0pe File Added: opensim-osparsejsonnew.diff
2011-12-11 21:40 nebadon Assigned To => nebadon
2011-12-11 21:40 nebadon Status new => patch included
2011-12-11 21:44 otakup0pe Note Added: 0020499
2011-12-11 22:27 nebadon Note Added: 0020500
2011-12-11 22:27 nebadon Status patch included => resolved
2011-12-11 22:27 nebadon Resolution open => fixed
2014-07-29 13:40 chi11ken Status resolved => closed


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker