Mutualise JSON parsing.