added json parser. Handle existing records