Azure/azure-storage-cpp

Missing code in JsonPayloadFormat sample?

Opened this issue · 2 comments

I was browsing the sample code...

The JsonPayloadFormat sample creates an options object but never uses it:

            // Set the payload format to reduce the size of the network payload, however, some property types cannot be automatically inferred and need to be set explicitly.
            // For more information about the support for JSON, check the following document: http://blogs.msdn.com/b/windowsazurestorage/archive/2013/12/05/windows-azure-tables-introducing-json.aspx.
            azure::storage::table_request_options options;
            options.set_payload_format(azure::storage::table_payload_format::json_no_metadata);

For example, I would have expected this code to pass in the options:

                azure::storage::table_query_segment segment = table.execute_query_segmented(query, token);

@huguesv thanks for raising the issue. We will update the sample in a later release.

@huguesv Thank you for reporting the issue. Actually we're encouraging community contributions to our open source projects. If you have a fix for it, please do raise a PR against our dev branch.