jsonSerialize() jsonSerialize() : array Serializes object into json format for available properties Returns array