Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Json exporter use the field's alias if necessary
  • Loading branch information
pblottiere committed Jan 28, 2019
1 parent 562215c commit 7e414b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsjsonutils.cpp
Expand Up @@ -145,7 +145,7 @@ QString QgsJsonExporter::exportFeature( const QgsFeature &feature, const QVarian
val = fieldFormatter->representValue( mLayer.data(), i, setup.config(), QVariant(), val );
}

properties += QStringLiteral( " \"%1\":%2" ).arg( fields.at( i ).name(), QgsJsonUtils::encodeValue( val ) );
properties += QStringLiteral( " \"%1\":%2" ).arg( mLayer->attributeDisplayName( i ), QgsJsonUtils::encodeValue( val ) );

++attributeCounter;
}
Expand Down

0 comments on commit 7e414b0

Please sign in to comment.