trying to use json correctly