… | |
… | |
1041 | more). These values and the paclkage/classname of the object will |
1041 | more). These values and the paclkage/classname of the object will |
1042 | then be encoded as a tagged JSON value in the following format: |
1042 | then be encoded as a tagged JSON value in the following format: |
1043 | |
1043 | |
1044 | ("classname")[FREEZE return values...] |
1044 | ("classname")[FREEZE return values...] |
1045 | |
1045 | |
|
|
1046 | e.g.: |
|
|
1047 | |
|
|
1048 | ("URI")["http://www.google.com/"] |
|
|
1049 | ("MyDate")[2013,10,29] |
|
|
1050 | ("ImageData::JPEG")["Z3...VlCg=="] |
|
|
1051 | |
1046 | For example, the hypothetical "My::Object" "FREEZE" method might use |
1052 | For example, the hypothetical "My::Object" "FREEZE" method might use |
1047 | the objects "type" and "id" members to encode the object: |
1053 | the objects "type" and "id" members to encode the object: |
1048 | |
1054 | |
1049 | sub My::Object::FREEZE { |
1055 | sub My::Object::FREEZE { |
1050 | my ($self, $serialiser) = @_; |
1056 | my ($self, $serialiser) = @_; |