dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #20796
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 9667: FRED-API: changed inclusion policy to NON_NULL, means that it returns { 'facilities': [] } for em...
------------------------------------------------------------
revno: 9667
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2013-01-31 08:59:52 +0700
message:
FRED-API: changed inclusion policy to NON_NULL, means that it returns { 'facilities': [] } for empty collections
modified:
dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/utils/ObjectMapperFactoryBean.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/utils/ObjectMapperFactoryBean.java'
--- dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/utils/ObjectMapperFactoryBean.java 2012-12-11 10:59:24 +0000
+++ dhis-2/dhis-web/dhis-web-api-fred/src/main/java/org/hisp/dhis/web/webapi/v1/utils/ObjectMapperFactoryBean.java 2013-01-31 01:59:52 +0000
@@ -46,7 +46,7 @@
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.configure( JsonGenerator.Feature.ESCAPE_NON_ASCII, true );
objectMapper.configure( SerializationConfig.Feature.WRITE_DATES_AS_TIMESTAMPS, false );
- objectMapper.setSerializationInclusion( JsonSerialize.Inclusion.NON_EMPTY );
+ objectMapper.setSerializationInclusion( JsonSerialize.Inclusion.NON_NULL );
return objectMapper;
}