Fix for writing ordered map to JSON

Change-Id: I698bc61ee4e94af63317c145851b802f3194ee06
Signed-off-by: malauko <malauko@cisco.com>