Specification: String
Profiles: basic v1
String is the basic textual data type. It is useful both on its own and as a building block inside container types such as dictionaries and tuples.
Encoding rules
- Set
_typeto"String". - Store the UTF-8 string payload directly under
data. - When strings appear as keys or components inside other payloads, their role is determined by the surrounding type.
Canonical Example Payload
The following payload is taken directly from the current rosetta-stone corpus.
{
"_ns": {"Oscar": ["https://github.com/oscar-system/Oscar.jl", "1.7.0"]},
"_type": "String",
"data": "some text"
}
Documented Profiles in This Corpus
This table records the profile/version pairs currently represented by the rosetta-stone examples for this data type. Add new rows as new systems or encoding revisions are documented.
| Profile | Version | Example | Root type |
|---|---|---|---|
| Oscar | 1.0.5 |
String | String |
| Oscar | 1.1.2 |
String | String |
| Oscar | 1.2.2 |
String | String |
| Oscar | 1.3.1 |
String | String |
| Oscar | 1.4.1 |
String | String |
| Oscar | 1.5.1 |
String | String |
| Oscar | 1.6.0 |
String | String |
| Oscar | 1.7.0 |
String | String |