Add initial routine to find json at the end of a string