Commit Graph

13 Commits

Author SHA1 Message Date
Latif Khalifa
a02a3697da LIBOMV-879: Fixed deserialization of nested arrays
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3463 52acb1d6-8a22-11de-b505-999d5b087335
2010-10-30 05:20:49 +00:00
John Hurliman
2ebc810d72 * Finished OAR file loading
* Small performance optimization in JsonMapper.cs
* Added message definitions for new capabilities
* Added (currently unused) new enum values
* Updated to a more recent version of log4net.dll

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3397 52acb1d6-8a22-11de-b505-999d5b087335
2010-07-26 18:01:40 +00:00
John Hurliman
64f990fa38 * Fixed JSON serialization for null/undefined values
* Added MappingType.Spherical and MappingType.Cylindrical enum values

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3361 52acb1d6-8a22-11de-b505-999d5b087335
2010-06-05 14:12:24 +00:00
John Hurliman
f5a84b39aa * LLSD JSON serialization can now take an optional parameter to enable/disable preserving default values in serialization
* Fixed a regression where OSDMap.ToString() and OSDArray.ToString() were pruning default values after switching from notation output to JSON
* Fixed LLSD decoding to ignore case when parsing headers and use <? llsd/binary ?> instead of <?llsd/binary?>

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3357 52acb1d6-8a22-11de-b505-999d5b087335
2010-05-25 23:07:16 +00:00
Latif Khalifa
613e6a25e8 LIBOMV-798: OSDParser.DeserializeJson() throws an exception on null values
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3273 52acb1d6-8a22-11de-b505-999d5b087335
2010-03-13 11:17:48 +00:00
John Hurliman
6aa8541313 * OSDParser.SerializeJson*() will no longer store key/value pairs in serialized maps for default values. This saves memory overhead and reduces the footprint of serialized JSON data while staying compatible with the spec
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3239 52acb1d6-8a22-11de-b505-999d5b087335
2009-12-02 20:51:01 +00:00
John Hurliman
a5cc49b4d6 Going through ridiculous contortions to prevent OpenMetaverse.StructuredData.dll from crashing on Mono while decoding JSON objects
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3066 52acb1d6-8a22-11de-b505-999d5b087335
2009-08-06 19:37:33 +00:00
John Hurliman
f48c9922e9 * Added OpenMetaverse.Messages.Linden and OpenMetaverse.Messages.Simian namespaces to hold LLSD serialized messages. The dawn of a new era for libomv!
* Changing LLSD JSON serialization to match the draft at http://tools.ietf.org/html/draft-hamrick-llsd-00 (first breaking change since 0.6.0)
* Moving some enums out to OpenMetaverseTypes.dll
* Adding conversion methods to go to and from the newly moved enums
* Moved Parcel enums out to the main namespace

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2588 52acb1d6-8a22-11de-b505-999d5b087335
2009-04-09 01:17:40 +00:00
John Hurliman
808b681b83 * Fixed a nasty OSD->JSON bug that was producing invalid JSON for empty arrays or dictionaries
* Several fixes in OpenMetaverse.Http.CapsServer and OpenMetaverse.Http.EventQueueServer (this is the first time they've been tested)
[Simian]
* Initial capabilities and EventQueue support (appears to be working)
* HyperGrid is almost working
* More cleanup with how agents are removed from the scene

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2427 52acb1d6-8a22-11de-b505-999d5b087335
2009-02-04 23:00:33 +00:00
John Hurliman
66669a773c * Added method to serialize OSD to a JsonWriter
* Added more OSD.As*() functions to match the OSD.From*() functions
* Added more Utils.BytesTo*() functions

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2376 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-10 02:54:50 +00:00
John Hurliman
dd408d38fb * Fixed JSON->OSD deserialization error on empty strings
* Fixed exception strings in OpenJPEG.cs

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2369 52acb1d6-8a22-11de-b505-999d5b087335
2008-12-01 23:58:45 +00:00
John Hurliman
0c502322f9 Cleaning up comments in JSON code to avoid visual studio complaints
git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2363 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-19 00:32:05 +00:00
John Hurliman
5fbcd0c4d6 * Moved OpenMetaverse.StructuredData to a separate library
* Added experimental JSON serialization/deserialization to OSD using LitJSON (works, but subject to change soon)
* Moved packet handling code out of Simian.cs

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2361 52acb1d6-8a22-11de-b505-999d5b087335
2008-11-18 03:16:38 +00:00