reworked json match adding