switching from qstring to JSON