Transit is a data format and a set of libraries for conveying values between applications written in different languages. This library provides support for marshalling Transit data to/from C#.
This implementation's major.minor version number corresponds to the version of the Transit specification it supports.
JSON and JSON-Verbose are implemented, but more tests need to be written. MessagePack is not implemented yet.
NOTE: Transit is a work in progress and may evolve based on feedback. As a result, while Transit is a great option for transferring data between applications, it should not yet be used for storing data durably over time. This recommendation will change when the specification is complete.
This is a Portable Class Library with the following targets:
- .NET Framework 4.5
- Windows 8
- Windows Phone 8.1
Transit type | Write accepts | Read returns |
---|---|---|
null | null | null |
string | System.String | System.String |
boolean | System.Boolean | System.Boolean |
integer | System.Byte, System.Int16, System.Int32, System.Int64 | System.Int64 |
decimal | System.Single, System.Double | System.Double |
keyword | Beerendonk.Transit.IKeyword | Beerendonk.Transit.IKeyword |
symbol | Beerendonk.Transit.ISymbol | Beerendonk.Transit.ISymbol |
big decimal | not implemented | Beerendonk.Transit.Numerics.BigRational |
big integer | System.Numerics.BigInteger | System.Numerics.BigInteger |
time | System.DateTime | System.DateTime |
uri | System.Uri | System.Uri |
uuid | System.Guid | System.Guid |
char | System.Char | System.Char |
array | T[], System.Collections.Generic.IList<> | System.Collections.Generic.IList |
list | System.Collections.Generic.IEnumerable<> | System.Collections.Generic.IEnumerable |
set | System.Collections.Generic.ISet<> | System.Collections.Generic.ISet |
map | System.Collections.Generic.IDictionary<,> | System.Collections.Generic.IDictionary<object, object> |
link | Beerendonk.Transit.ILink | Beerendonk.Transit.ILink |
ratio + | Beerendonk.Transit.IRatio | Beerendonk.Transit.IRatio |
+ Extension type
Copyright © 2014 Rick Beerendonk.
This library is a C# port of the Java version created and maintained by Cognitect, therefore
Copyright © 2014 Cognitect
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.