FIX JSONDataFormatter wrong relation identifiers (fixes #1795)