Skip to content

Make sure feature properties are properly serialized#194

Merged
zugaldia merged 1 commit into
masterfrom
null-properties
Sep 12, 2016
Merged

Make sure feature properties are properly serialized#194
zugaldia merged 1 commit into
masterfrom
null-properties

Conversation

@zugaldia

Copy link
Copy Markdown
Member

GSON ignores fields with null values during serialization. Setting empty properties as a new JsonObject () makes sure the serialized JSON includes the "properties":{} string.

Fixes mapbox/mapbox-gl-native#6240.

/cc: @cammace

@mention-bot

Copy link
Copy Markdown

@zugaldia, thanks for your PR! By analyzing the annotation information on this pull request, we identified @cammace and @incanus to be potential reviewers

@zugaldia

Copy link
Copy Markdown
Member Author

CI approved. Merging.

@zugaldia zugaldia merged commit be8b477 into master Sep 12, 2016
@zugaldia zugaldia deleted the null-properties branch September 12, 2016 19:26
@zugaldia zugaldia mentioned this pull request Sep 19, 2016
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants