Fix problem when writing pair with a JsonStructure value