Skip to content
Permalink
Browse files

Json exporter use the field's alias if necessary

  • Loading branch information
pblottiere committed Jan 28, 2019
1 parent 562215c commit 7e414b0677aeab30585d1f79b8f38581e9c54f82
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsjsonutils.cpp
@@ -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;
}

0 comments on commit 7e414b0

Please sign in to comment.
You can’t perform that action at this time.