Factor out the json functions from soong_config.mk, and extend them to support maps. Bug: 119412419 Test: no change to soong.variables Change-Id: Ieea08fdd2aa202f60945103e3ca82538f098a942