Json decode returns a object, not an array