'How to combine two JsonNodes to a single JsonNode?

I am trying to concat two JsonNode objects.

ObjectMapper OBJECT_MAPPER = new ObjectMapper();
JsonNode body = OBJECT_MAPPER.readTree(inputStream);
JsonNode Results1 = body.get("Results1");
JsonNode Results2 = body.get("Results2");

where

Rate1 = { t: 1, d: 'AAA', v: 'yes' },
         { t: 2, d: 'BBB', v: 'yes' }

Rate2 = { t: 3, d: 'CCC', v: 'yes' },
        { t: 4, d: 'DDD', v: 'yes' }

I want to get some thing like

JsonNode output =  { t: 1, d: 'AAA', v: 'yes' },
           { t: 2, d: 'BBB', v: 'yes' },
           { t: 3, d: 'CCC', v: 'yes' },
           { t: 4, d: 'DDD', v: 'yes' }


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source