working joins with json also, format changed