json to object  input and output need different