Re: Passing Map to Remote App
- Posted by euphoric (admin) Mar 12, 2019
- 1188 views
ghaberek said...
It looks like save_map() just uses the serialize() function.
Interesting. BENCHMARK TIME!
This would be on the client (not tested):
-- on client object data = HttpGet("mysite.com/api/map/my_map") data = decode(data) {res,data} = value(data) data = map_from_kv_pairs(data)
I'm currently doing basically this on the server (and it's working fine):
-- on server object data = load_map( map:get(request_object,"map_id" ) ) -- "my_map" data = pairs(data) return encode(sprint(data)) -- encode can be base64() and/or encryption
Does sprint() do a serialize too, I wonder?