added Gerd's JSON parser functions.